search for: test_minor

Displaying 3 results from an estimated 3 matches for "test_minor".

2016 Feb 12
2
[PATCH] python: tests: use more targeted assert*() functions/checks
...eletions(-) diff --git a/python/t/080-version.py b/python/t/080-version.py index e8e1e25..cda4872 100644 --- a/python/t/080-version.py +++ b/python/t/080-version.py @@ -34,13 +34,13 @@ class Test080Version (unittest.TestCase): self.assertEqual (self.version['major'], 1) def test_minor (self): - self.assertTrue (isinstance (self.version['minor'], cl)) + self.assertIsInstance (self.version['minor'], cl) def test_release (self): - self.assertTrue (isinstance (self.version['release'], cl)) + self.assertIsInstance (self.versi...
2016 Feb 22
3
[PATCH 1/3] python: tests: refactor to use unittest's discovery
...= int -else: - cl = long - -class Test080Version (unittest.TestCase): - def setUp (self): - self.g = guestfs.GuestFS (python_return_dict=True) - self.version = self.g.version () - - def test_major (self): - self.assertEqual (self.version['major'], 1) - - def test_minor (self): - self.assertIsInstance (self.version['minor'], cl) - - def test_release (self): - self.assertIsInstance (self.version['release'], cl) - - def test_extra (self): - self.assertIsInstance (self.version['extra'], str) - -if __name__ == '__...
2016 May 04
9
[PATCH 0/8] python: PEP 8 fixes
Hi, this series cleans up the Python sources, either static or generated, including also tests, to make them PEP 8 compliant; see https://www.python.org/dev/peps/pep-0008/ and tools like pep8. Almost all the issues reported by pep8 are fixed, reducing the issues from 3818 to 7. The changes should have no effect on the actual code, while it will help Python users with consistency with other