def test_validate_juvenile_survival_rate_must_be_0_or_greater_for_value_of_1( self): validation = ModelRunOptionsValidation(1, 100) self.assertEqual(None, validation.validate_juvenile_survival_rate(1))
def test_validate_juvenile_survival_rate_must_be_1_or_less_for_value_of_2( self): validation = ModelRunOptionsValidation(1, 100) self.assertEqual("Must be 1 or less", validation.validate_juvenile_survival_rate(2))
def test_validate_juvenile_survival_rate_must_be_0_or_greater_for_value_of_minus_one( self): validation = ModelRunOptionsValidation(1, 100) self.assertEqual("Must be 0 or greater", validation.validate_juvenile_survival_rate(-1))