aboutsummaryrefslogtreecommitdiff
path: root/python/version_spec_TEST.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/version_spec_TEST.py')
-rwxr-xr-xpython/version_spec_TEST.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/python/version_spec_TEST.py b/python/version_spec_TEST.py
index 2c44ceb..1573632 100755
--- a/python/version_spec_TEST.py
+++ b/python/version_spec_TEST.py
@@ -61,6 +61,17 @@ class TestCase_VersionSpec(unittest.TestCase):
def test_08_is_scm(self):
self.assert_(VersionSpec("scm").is_scm)
+ self.assert_(VersionSpec("9999").is_scm)
+ self.assert_(not VersionSpec("1").is_scm)
+
+ def test_09_has_scm_part(self):
+ self.assert_(VersionSpec("1-scm").has_scm_part)
+ self.assert_(not VersionSpec("1").has_scm_part)
+
+ def test_09_has_scm_part(self):
+ self.assert_(VersionSpec("1-try").has_try_part)
+ self.assert_(not VersionSpec("1").has_try_part)
+
if __name__ == "__main__":
unittest.main()