Example #1
0
 def test_validate_generations_cannot_be_more_than_max_for_value_of_101(
         self):
     validation = ModelRunOptionsValidation(1, 100)
     self.assertEqual("Must be equal to or less than 100",
                      validation.validate_generations(101))
Example #2
0
 def test_validate_generations_ok_for_value_of_100(self):
     validation = ModelRunOptionsValidation(1, 100)
     self.assertEqual(None, validation.validate_generations(100))
Example #3
0
 def test_validate_generations_cannot_be_less_than_min_for_value_of_minus_one(
         self):
     validation = ModelRunOptionsValidation(1, 100)
     self.assertEqual("Must be equal to or greater than 1",
                      validation.validate_generations(-1))