Esempio n. 1
0
 def test_validate_adult_birth_rate_must_be_0_or_greater_for_value_of_1(
         self):
     validation = ModelRunOptionsValidation(1, 100)
     self.assertEqual(None, validation.validate_adult_birth_rate(1))
Esempio n. 2
0
 def test_validate_adult_birth_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_adult_birth_rate(-1))