def test_eat_less_hungry_on_food(self): creature = Creature([0, 0], 0.5, 1) test_world = World(4, 0) food_cell = ArableLandCell(test_world, [0, 0], 0) for i in range(200): food_cell.grow() test_world.set_cell(0, 0, food_cell) submited_output = creature.eat(test_world) expected_output = True self.assertEqual(submited_output, expected_output) self.assertEqual(creature.get_hunger_level(), 0)