def test_is_not_maxheight(self): """Case for seeing if a building isn't at MAX_HEIGHT.""" board = Board([[0, 4]], {self.workers[0]: (0, 0)}) self.assertFalse( board.is_maxheight(board.worker_position(self.workers[0]), Direction.STAY))
def test_building_is_not_max_height(self): """Test on the building to see if it is at max height.""" board = Board([[3]], workers={self.workers[0]: (1, 0)}) self.assertFalse( board.is_maxheight(board.worker_position(self.workers[0]), Direction.NORTH))
def test_is_maxheight(self): """Base case for seeing if a building is at MAX_HEIGHT.""" board = Board([[0, 4]], {self.workers[0]: (0, 0)}) self.assertTrue( board.is_maxheight(board.worker_position(self.workers[0]), Direction.EAST))