diff options
Diffstat (limited to 'test/test.Pkg.py')
-rw-r--r-- | test/test.Pkg.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test.Pkg.py b/test/test.Pkg.py index 6d061d4..43416e1 100644 --- a/test/test.Pkg.py +++ b/test/test.Pkg.py @@ -5,7 +5,9 @@ import unittest import Testing import Pkg + class TestPkg(unittest.TestCase): + def setUp(self): Testing.startTest() @@ -16,14 +18,14 @@ class TestPkg(unittest.TestCase): ("b", rpm.RPMSENSE_LESS, (None, "1.0", None)), ("c", rpm.RPMSENSE_EQUAL, ("5", "2.0", "3")), ("d", 0, (None, None, None))]), - ): + ): self.assertEqual(Pkg.parse_deps(arg), exp) def test_rangeCompare(self): for (req, prov) in ( (("foo", rpm.RPMSENSE_LESS, (None, "1.0", None)), ("foo", rpm.RPMSENSE_EQUAL, ("1", "0.5", None))), - ): + ): self.assertFalse(Pkg.rangeCompare(req, prov)) if __name__ == '__main__': |