예제 #1
0
 def test_version(self):
     """Test the complete version format"""
     complete_version = Version.version()
     version_num = Version.versionNum()
     release = Version.revision()
     expected_version = "%s %s" % (version_num, release)
     self.assertEqual(complete_version, expected_version)
예제 #2
0
 def test_revision_git(self):
     """Test the revision format"""
     revision = Version.revision()
     pattern_revision = "development \(git .* \w+\)"
     match_revision = re.match(pattern_revision, revision)
     self.assertIsNotNone(match_revision)