def test_validate_name_version(self): self.assertIsNone(ConanName.validate_version("name", "[vvvv]"))
def _check_invalid_version(self, name, version): with six.assertRaisesRegex(self, InvalidNameException, "invalid version number"): ConanName.validate_version(version, name)