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"])
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")