def test_that_is_finish_returns_true_when_coordinate_is_not_finish(self): f = MazeField([[Wall]]) is_finish = f.is_finish(coordinate(1, 1)) self.assertFalse(is_finish)
def test_that_is_finish_returns_true_when_coordinate_is_finish(self): f = MazeField([[Finish]]) is_finish = f.is_finish(coordinate(1, 1)) self.assertTrue(is_finish)