]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
test the fix for text versions
authorAlfredo Deza <alfredo.deza@inktank.com>
Mon, 29 Sep 2014 18:37:58 +0000 (14:37 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Mon, 29 Sep 2014 18:37:58 +0000 (14:37 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/tests/unit/hosts/test_hosts.py

index aa1b9f5ad7d84969564982f15247e2dd76c466a0..4229ec6581bcfbadea44d970a21671bc43207168 100644 (file)
@@ -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):