def test_regrowth_to_maximum(self, example_pop_herb):
     """
     Asserts that amount of fodder is equal to f_max after each year.
     """
     landscape = Landscape(example_pop_herb)
     landscape.regrowth()
     assert landscape.fodder_amount == landscape.params["f_max"]
 def test_amount_returned_when_enough_fodder_is_available_to_herb(
         self, example_pop_herb):
     """
     Tests available_fodder_herbivore method.
     Asserts that a herbivore is provided with the amount it desires, when
     enough fodder is available.
     Also asserts that the amount of fodder
     provided is subtracted from the initial fodder amount.
     """
     landscape = Landscape(example_pop_herb)
     landscape.regrowth()
     old_fodder_amount = landscape.fodder_amount
     available_fodder_to_herb = landscape.available_fodder_herbivore()
     assert available_fodder_to_herb == Herbivore.params["F"]
     assert landscape.fodder_amount == old_fodder_amount - \
         available_fodder_to_herb