def testDoesBottomWallHaveGapsNoGapsShouldBeFalse(self): maze = Maze('mazes/linear_maze.txt', QueueFrontier()) maze._maze = [] maze._maze.append(['#', '#', '#']) maze._maze.append(['#', 'B', '#']) maze._maze.append(['#', ' ', '#']) maze._maze.append(['#', 'A', '#']) maze._maze.append(['#', '#', '#']) self.assertFalse(maze._does_maze_bottom_wall_have_gaps())
def testDoesMazeBottomWallHaveGapsFirstTileIsGapShouldBeTrue(self): maze = Maze('mazes/linear_maze.txt', QueueFrontier()) maze._maze = [] maze._maze.append(['#', '#', '#']) maze._maze.append(['#', 'B', '#']) maze._maze.append(['#', ' ', '#']) maze._maze.append(['#', 'A', '#']) maze._maze.append([' ', '#', '#']) self.assertTrue(maze._does_maze_bottom_wall_have_gaps())