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_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, ))
 def test_validate_valid(self):
     for version in self.valid_strings:
         self.assertTrue(base.validate(version),
             "%r should be a valid version" % (version,))