Exemple #1
0
 def test_set_landscape_parameters(self, biosim):
     """
     :method: Biosim.set_landscape_parameters I
     Test that landscape params can be set correctly
     """
     assert Lowland.f_max() == 800.0
     assert Highland.f_max() == 300.0
     biosim.set_landscape_parameters('L', {'f_max': 700.0})
     biosim.set_landscape_parameters('H', {'f_max': 250.0})
     assert Lowland.f_max() == 700.0
     assert Highland.f_max() == 250.0
 def test_set_landscape_params(self, island, params):
     """
     :method: Island.set_landscape_params
     Test that method alters properties of cells correctly
     """
     island.set_landscape_params(params[0], params[1])
     if params[0] == 'L':
         assert Lowland.f_max() == 1000.0
     elif params[0] == 'H':
         assert Highland.f_max() == 200.0