summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-12-20 13:54:35 +0000
committerGerrit Code Review <review@openstack.org>2012-12-20 13:54:35 +0000
commite995ee13d6a227d5b773a74b5ab6ea717fd3acbb (patch)
tree82f5de9dccabf300acc4e8908695ef1743ab4dfa /nova/tests
parent272e1383459135948a9fa1d6c1bf6e7fa2f7acfc (diff)
parent481d6ff142b8daeb08b22001997b5cf701a6d134 (diff)
Merge "Remove obsolete VCS version info completely"
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_versions.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/nova/tests/test_versions.py b/nova/tests/test_versions.py
index cec418aee..68e77ff9e 100644
--- a/nova/tests/test_versions.py
+++ b/nova/tests/test_versions.py
@@ -31,6 +31,7 @@ class VersionTestCase(test.TestCase):
self.version.version_info = {'branch_nick': u'LOCALBRANCH',
'revision_id': 'LOCALREVISION',
'revno': 0}
+ self.version.NOVA_PACKAGE = "g9ec3421"
def test_version_string_is_good(self):
"""Ensure version string works"""
@@ -48,12 +49,7 @@ class VersionTestCase(test.TestCase):
self.assertEqual(self.version.canonical_version_string(),
self.version.version_string())
- def test_vcs_version_string_is_good(self):
- """Ensure uninstalled code generates local """
- self.assertEqual("LOCALBRANCH:LOCALREVISION",
- self.version.vcs_version_string())
-
- def test_version_string_with_vcs_is_good(self):
+ def test_version_string_with_package_is_good(self):
"""Ensure uninstalled code get version string"""
- self.assertEqual("2012.10-LOCALBRANCH:LOCALREVISION",
- self.version.version_string_with_vcs())
+ self.assertEqual("2012.10-g9ec3421",
+ self.version.version_string_with_package())