def test_validate_invalid(self):
     for version in self.invalid_strings:
         self.assertFalse(base.validate(version),
                          "%r should not be a valid version" % (version, ))
Пример #2
0
 def test_validate_invalid(self):
     for version in self.invalid_strings:
         self.assertFalse(base.validate(version),
             "%r should not be a valid version" % (version,))
 def test_validate_valid(self):
     for version in self.valid_strings:
         self.assertTrue(base.validate(version),
                         "%r should be a valid version" % (version, ))
Пример #4
0
 def test_validate_valid(self):
     for version in self.valid_strings:
         self.assertTrue(base.validate(version),
             "%r should be a valid version" % (version,))