Ejemplo n.º 1
0
 def testSingleList(self):
     """Verify that pprint_pkglist proper handles a single list (IndexError)"""
     try:
         res = rhnPackageInfo.pprint_pkglist(self.pkgList5)
         print res
     except IndexError:
         pass
     else:
         self.fail("expected a IndexError")
Ejemplo n.º 2
0
 def testSingleList(self):
     """Verify that pprint_pkglist proper handles a single list (IndexError)"""
     try:
         res = rhnPackageInfo.pprint_pkglist(self.pkgList5)
         print res
     except IndexError:
         pass
     else:
         self.fail("expected a IndexError")
Ejemplo n.º 3
0
 def testTuple(self):
     """Verify that pprint_pkglist properly handles a single tuple"""
     res = rhnPackageInfo.pprint_pkglist(self.pkgList4)
     assert res == "foo-1.0-1"
Ejemplo n.º 4
0
 def testEmptyList(self):
     """Verify that pprint_pkglist properly handles a empty list"""
     res = rhnPackageInfo.pprint_pkglist(self.pkgList2)
     assert res == []
Ejemplo n.º 5
0
 def testPprint_pkglist(self):
     """Verify that pprint_pkglist properly formats a package list"""
     res = rhnPackageInfo.pprint_pkglist(self.pkgList1)
     assert res == ['foo-1.0-1', 'bar-2.0-2']
Ejemplo n.º 6
0
 def testTuple(self):
     """Verify that pprint_pkglist properly handles a single tuple"""
     res = rhnPackageInfo.pprint_pkglist(self.pkgList4)
     assert res == "foo-1.0-1"
Ejemplo n.º 7
0
 def testEmptyList(self):
     """Verify that pprint_pkglist properly handles a empty list"""
     res = rhnPackageInfo.pprint_pkglist(self.pkgList2)
     assert res == []
Ejemplo n.º 8
0
 def testPprint_pkglist(self):
     """Verify that pprint_pkglist properly formats a package list"""
     res = rhnPackageInfo.pprint_pkglist(self.pkgList1)
     assert res == ['foo-1.0-1', 'bar-2.0-2']