def test_update_all(self): """ Update all you can. """ yumbase = support.MockYumBase("main", "updates") sack = yumbase.sack yumbase.update() expected = support.installed_but(sack, "pepper", "hole") + \ list(available_by_nevra(sack, "pepper-20-1.x86_64")) + \ list(available_by_nevra(sack, "hole-2-1.x86_64")) self.assertResult(yumbase, expected)
def test_update_all(self): """ update() without parameters update everything it can that has its deps in trim. Broken packages are silently skipped. """ self.yumbase.update() new_set = support.installed_but(self.sack, "pepper").run() new_set.extend(available_by_nevra(self.sack, "pepper-20-1.x86_64")) self.assertResult(self.yumbase, new_set)