]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[RM-12644] Kill TestRPM
authorTravis Rhoden <trhoden@redhat.com>
Fri, 7 Aug 2015 22:22:19 +0000 (15:22 -0700)
committerTravis Rhoden <trhoden@redhat.com>
Fri, 7 Aug 2015 22:22:19 +0000 (15:22 -0700)
pkg_managers.rpm() is unused in the codebase.

There are places that *could* use it, but I'd rather roll that into
pkg_managers.RPMBaseManager at some point

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
ceph_deploy/tests/unit/util/test_pkg_managers.py

index d634e034bd9eb9f0b5352d05856ecc9e26dbb3b0..b7c7976e4d3b77055bbc3780265349fd15e765de 100644 (file)
@@ -2,28 +2,6 @@ from mock import patch, Mock
 from ceph_deploy.util import pkg_managers
 
 
-class TestRPM(object):
-
-    def setup(self):
-        self.to_patch = 'ceph_deploy.util.pkg_managers.remoto.process.run'
-
-    def test_normal_flags(self):
-        fake_run = Mock()
-        with patch(self.to_patch, fake_run):
-            pkg_managers.rpm(Mock())
-            result = fake_run.call_args_list[-1]
-        assert result[0][-1] == ['rpm', '-Uvh']
-
-    def test_extended_flags(self):
-        fake_run = Mock()
-        with patch(self.to_patch, fake_run):
-            pkg_managers.rpm(
-                Mock(),
-                ['-f', 'vim'])
-            result = fake_run.call_args_list[-1]
-        assert result[0][-1] == ['rpm', '-Uvh', '-f', 'vim']
-
-
 class TestApt(object):
 
     def setup(self):