From 14fec138989b1fb31bdc727ce8dd67f061574a98 Mon Sep 17 00:00:00 2001 From: Travis Rhoden Date: Fri, 7 Aug 2015 15:22:19 -0700 Subject: [PATCH] [RM-12644] Kill TestRPM 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 --- .../tests/unit/util/test_pkg_managers.py | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/ceph_deploy/tests/unit/util/test_pkg_managers.py b/ceph_deploy/tests/unit/util/test_pkg_managers.py index d634e03..b7c7976 100644 --- a/ceph_deploy/tests/unit/util/test_pkg_managers.py +++ b/ceph_deploy/tests/unit/util/test_pkg_managers.py @@ -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): -- 2.47.3