def cmd_rotate(self): """Rotate order of the stacks""" utils.shuffle_up(self.stacks) self.group.layout_all()
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))