def test_validate_version():
    """Check the function validate_version."""
    assert validate_version("1.2.3")
    assert not validate_version("1.2.*"), "Invalid Version"
Example #2
0
 def test_validate_version_false(self):
     """Test Version should not contain special Characters."""
     result = validate_version("1.*")
     self.assertFalse(result)