Skip to content

Commit

Permalink
verify that into test_unselectAllPackages only protected packages
Browse files Browse the repository at this point in the history
survive
  • Loading branch information
anaselli committed Apr 25, 2018
1 parent 0822f02 commit f5aa046
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class TestFunctions(unittest.TestCase):
def setUp(self):
pbar = progress.Progress()
self.dnf_base = dnfbackend.DnfBase(True, pbar)
self.dnf_base = functions.dnfBase(True, pbar)

def test_dnfbase(self):
self.assertIsNotNone(self.dnf_base)
Expand Down Expand Up @@ -75,7 +75,9 @@ def test_unselectAllPackages(self):
pl = functions.packagesToInstall(self.dnf_base)
self.assertTrue(len(pl) > 0)
for p in pl:
print(" ", packages.fullname(p))
print(" ", packages.fullname(p), " ", packages.pkg_id(p))
if p.name == p_name:
self.assertTrue(functions.is_protected(self.dnf_base, p))

if __name__ == '__main__':
unittest.main()

0 comments on commit f5aa046

Please sign in to comment.