def test_an_unsolved_rotated_face_is_still_unsolved(): face = CubeFace(5) face.set_line(0, (5, 3, 2)) for _ in range(4): face.rotate() assert not face.is_solved
def test_a_rotated_face_is_still_solved(): face = CubeFace(3) face.rotate() assert face.is_solved face.rotate(False) face.rotate(False) assert face.is_solved