def test_rollback_changes(self): main.rollback_changes() self.assertEqual(utils.changed_pkgs_control.restore_pkgs.called, 1) self.assertEqual(redhatrelease.system_release_file.restore.called, 1) self.assertEqual(redhatrelease.yum_conf.restore.called, 1) self.assertEqual(subscription.rollback.called, 1) self.assertEqual(pkghandler.versionlock_file.restore.called, 1)
def test_rollback_changes(self): main.rollback_changes() self.assertEqual(backup.changed_pkgs_control.restore_pkgs.called, 1) self.assertEqual(repo.restore_yum_repos.called, 1) self.assertEqual(redhatrelease.system_release_file.restore.called, 1) self.assertEqual(redhatrelease.os_release_file.restore.called, 1) self.assertEqual( special_cases.shim_x64_pkg_protection_file.restore.called, 1) self.assertEqual(subscription.rollback.called, 1) self.assertEqual(pkghandler.versionlock_file.restore.called, 1) self.assertEqual(cert.SystemCert.remove.called, 1)