Beispiel #1
0
 def test_12_add_rh_repo_by_product(self):
     '''add a Red Hat repo by the product that contains it, remove it'''
     RHUIManagerRepo.add_rh_repo_by_product(RHUA, [self.yum_repo_name])
     repo_list = RHUIManagerRepo.list(RHUA)
     nose.tools.ok_(Util.format_repo(self.yum_repo_name,
                                     self.yum_repo_version) in repo_list,
                    msg="The repo wasn't added. Actual repolist: %s" %
                    repo_list)
     RHUIManagerRepo.delete_all_repos(RHUA)
     nose.tools.ok_(not RHUIManagerRepo.list(RHUA))
 def test_05_add_atomic_repo(self):
     '''
        add the RHEL Atomic Host (Trees) from RHUI repo
     '''
     RHUIManagerRepo.add_rh_repo_by_product(RHUA, [self.atomic_repo_name])