def test_that_can_move_to_position_returns_False_when_coordinate_is_a_finish( self): f = MazeField([[Finish]]) can_move = f.can_move_to_coordinate(coordinate(1, 1)) self.assertTrue(can_move)
def test_that_can_move_to_position_returns_False_when_coordinate_is_a_wall( self): f = MazeField([[Wall]]) can_move = f.can_move_to_coordinate(coordinate(1, 1)) self.assertFalse(can_move)