Exemplo n.º 1
0
    def test_call_yum_cmd_w_downgrades_one_fail(self):
        pkghandler.call_yum_cmd.fail_once = True

        pkghandler.call_yum_cmd_w_downgrades("test_cmd", ["fingerprint"])
Exemplo n.º 2
0
    def test_call_yum_cmd_w_downgrades_correct_cmd(self):
        pkghandler.call_yum_cmd_w_downgrades("update", ["fingerprint"])

        self.assertEqual(utils.run_subprocess.cmd, "yum update -y pkg1 pkg2")