]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
a test to ensure we are getting centos right 214/head
authorAlfredo Deza <alfredo.deza@inktank.com>
Mon, 14 Jul 2014 16:22:22 +0000 (12:22 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Mon, 14 Jul 2014 16:22:22 +0000 (12:22 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/tests/unit/hosts/test_hosts.py

index 701171f076f561d5963ca4c16417521003a22dc3..424d4db293bad25adf5187e3d1a5a92e395852c4 100644 (file)
@@ -11,6 +11,10 @@ class TestNormalized(object):
         result = hosts._normalized_distro_name('Debian')
         assert result == 'debian'
 
+    def test_get_centos(self):
+        result = hosts._normalized_distro_name('CentOS Linux')
+        assert result == 'centos'
+
     def test_get_ubuntu(self):
         result = hosts._normalized_distro_name('Ubuntu')
         assert result == 'ubuntu'