skipTest(reason) Calling this during a test method or setUp() skips the current test. See Skipping tests
class doctest.OutputChecker A class used to check the whether the actual output from a doctest example matches the expected
doctest.testmod(m=None, name=None, globs=None, verbose=None, report=True, optionflags=0, extraglobs=None, raise_on_error=False, exclude_empty=False)
assertWarns(warning, callable, *args, **kwds) assertWarns(warning, msg=None) Test that a warning is triggered when
unittest.removeResult(result) Remove a registered result. Once a result has been removed then stop() will no longer
assertIsNot(first, second, msg=None) Test that first and second evaluate (or don’t evaluate) to the same object
stopTest(test) Called after the test case test has been executed, regardless of the outcome.
globs The namespace (aka globals) that the examples should be run in. This is a dictionary mapping names to values. Any changes
startTest(test) Called when the test case test is about to be run.
assertNotAlmostEqual(first, second, places=7, msg=None, delta=None) Test that first and second are approximately
Page 22 of 28