Example #1
0
 def cmd_rotate(self):
     """Rotate order of the stacks"""
     utils.shuffle_up(self.stacks)
     self.group.layout_all()
Example #2
0
def test_shuffle():
    test_l = list(range(3))
    utils.shuffle_up(test_l)
    assert test_l != list(range(3))
    utils.shuffle_down(test_l)
    assert test_l == list(range(3))