search for: assertnotequal

Displaying 5 results from an estimated 5 matches for "assertnotequal".

2016 Feb 12
2
[PATCH] python: tests: use more targeted assert*() functions/checks
- use assertIsInstance, assertNotEqual, and assertIsNotNone as more specific checks (will produce better logging) - use assertRaises when expecting exceptions being thrown - when testing internal_test_rhashtable, instead of checking type and elements of the return values just check the return value as a whole (easier and already g...
2016 Feb 12
1
Re: [PATCH] python: tests: use more targeted assert*() functions/checks
On Friday 12 February 2016 17:13:17 Richard W.M. Jones wrote: > On Fri, Feb 12, 2016 at 06:04:47PM +0100, Pino Toscano wrote: > > - use assertIsInstance, assertNotEqual, and assertIsNotNone as more > > specific checks (will produce better logging) > > - use assertRaises when expecting exceptions being thrown > > - when testing internal_test_rhashtable, instead of checking type and > > elements of the return values just check the return...
2016 Feb 12
0
Re: [PATCH] python: tests: use more targeted assert*() functions/checks
On Fri, Feb 12, 2016 at 06:04:47PM +0100, Pino Toscano wrote: > - use assertIsInstance, assertNotEqual, and assertIsNotNone as more > specific checks (will produce better logging) > - use assertRaises when expecting exceptions being thrown > - when testing internal_test_rhashtable, instead of checking type and > elements of the return values just check the return value as a whole &gt...
2016 Feb 22
3
[PATCH 1/3] python: tests: refactor to use unittest's discovery
...ACE - g.set_event_callback (log_callback, events) - - # Now make sure we see some messages. - g.set_trace (1) - g.set_verbose (1) - - # Do some stuff. - g.add_drive_ro ("/dev/null") - g.set_autosync (1) - - g.close () - - self.assertNotEqual (log_invoked, 0) - -if __name__ == '__main__': - unittest.main () diff --git a/python/t/800-explicit-close.py b/python/t/800-explicit-close.py deleted file mode 100644 index 4086829..0000000 --- a/python/t/800-explicit-close.py +++ /dev/null @@ -1,57 +0,0 @@ -# libguestfs Python bindings...
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