Exemple #1
0
 def test_11_delete_one_repo(self):
     '''remove the Red Hat repo'''
     RHUIManagerRepo.delete_repo(
         RHUA,
         [Util.format_repo(self.yum_repo_name, self.yum_repo_version)])
     repo_list = RHUIManagerRepo.list(RHUA)
     nose.tools.ok_(
         Util.format_repo(self.yum_repo_name,
                          self.yum_repo_version) not in repo_list,
         msg="The repo wasn't removed. Actual repolist: %s" % repo_list)
 def test_08_remove_custom_repo():
     '''
        remove the custom repo
     '''
     RHUIManagerRepo.delete_repo(RHUA, ["custom-enttest"])
     nose.tools.assert_equal(RHUIManagerRepo.list(RHUA), [])
 def test_99_cleanup(self):
     '''remove the RH repo and cert'''
     RHUIManagerRepo.delete_repo(
         RHUA,
         [Util.format_repo(self.yum_repo_name, self.yum_repo_version)])
     RHUIManager.remove_rh_certs(RHUA)