]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
Modified the tests to reflect the desired output of normalize_release()
authorTom Walsh <tom.walsh@expresshosting.net>
Fri, 8 Aug 2014 17:01:52 +0000 (12:01 -0500)
committerAlfredo Deza <alfredo.deza@inktank.com>
Fri, 8 Aug 2014 23:34:40 +0000 (19:34 -0400)
Added normalize_release() to the centos object so that the tests can properly execute.

ceph_deploy/hosts/centos/__init__.py
ceph_deploy/tests/unit/hosts/test_centos.py

index 9ac46833860600b50028a6afbe46f1d8885a5d68..41a00be1636ef713e56401bd29d2bd3cfe0a331b 100644 (file)
@@ -1,6 +1,6 @@
 import mon  # noqa
 import pkg  # noqa
-from install import install, mirror_install, repo_install, repository_url_part, rpm_dist  # noqa
+from install import install, mirror_install, repo_install, repository_url_part, rpm_dist, normalize_release  # noqa
 from uninstall import uninstall  # noqa
 
 # Allow to set some information about this distro
index 5ee6e5c6dfdc811aafbcf2d01a8ab217d5aba588..983ce27cdfdea7d9fb64a2f989f2c21df6dfe4f3 100644 (file)
@@ -106,7 +106,7 @@ class TestCentosVersionDetection(object):
 
     def test_normalize_release_number(self):
         self.distro.release = '6.9'
-        assert centos.normalize_release(self.distro.release) == 6.9
+        assert centos.normalize_release(self.distro.release) == 6.0
 
     def test_normalize_release_empty_string(self):
         self.distro.release = ''