def test_feed_herb(self): lowland = Lowland() lowland.present_herbivores.append(Herbivore()) lowland.available_fodder = 15 lowland.feed_herb() assert lowland.available_fodder == 5 lowland.available_fodder = 8 lowland.feed_herb() assert lowland.available_fodder == 0
def test_grow(self): lowland = Lowland() lowland.available_fodder = 3 assert lowland.get_fodder() == 3 lowland.fodder_regrow() assert lowland.get_fodder() == 800