From: Alfredo Deza Date: Mon, 29 Sep 2014 18:37:58 +0000 (-0400) Subject: test the fix for text versions X-Git-Tag: v1.5.16~3^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d0e361ffe5d3790fbd2e309e5718cf016b3a1c25;p=ceph-deploy.git test the fix for text versions Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/tests/unit/hosts/test_hosts.py b/ceph_deploy/tests/unit/hosts/test_hosts.py index aa1b9f5..4229ec6 100644 --- a/ceph_deploy/tests/unit/hosts/test_hosts.py +++ b/ceph_deploy/tests/unit/hosts/test_hosts.py @@ -326,6 +326,12 @@ class TestNormalizeRelease(object): assert result.patch == "01234" assert result.garbage == "1rc-1" + def test_garbage_version_with_no_numbers(self): + result = hosts._normalized_release('sid') + assert result.major == "sid" + assert result.minor == "0" + assert result.patch == "0" + assert result.garbage == "0" class TestHostGet(object): @@ -360,7 +366,6 @@ class TestHostGet(object): assert error.value.__str__() == 'Platform is not supported: Solaris 12 Tijuana' - class TestGetDistro(object): def test_get_debian(self):