From d3bf0d8ceb3f819d5030627c6d5c9b226d8c7fc4 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Mon, 14 Jul 2014 12:22:22 -0400 Subject: [PATCH] a test to ensure we are getting centos right Signed-off-by: Alfredo Deza --- ceph_deploy/tests/unit/hosts/test_hosts.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ceph_deploy/tests/unit/hosts/test_hosts.py b/ceph_deploy/tests/unit/hosts/test_hosts.py index 701171f..424d4db 100644 --- a/ceph_deploy/tests/unit/hosts/test_hosts.py +++ b/ceph_deploy/tests/unit/hosts/test_hosts.py @@ -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' -- 2.47.3