addUnexpectedSuccess(test) Called when the test case test was marked with the expectedFailure() decorator
run(test) This method is the main public interface to the TextTestRunner. This method takes a TestSuite
failfast If set to true stop() will be called on the first failure or error, halting the test run.
doctest.debug_src(src, pm=False, globs=None) Debug the doctests in a string. This is like function
loadTestsFromModule(module, pattern=None) Return a suite of all tests cases contained in the given module. This method searches
assert_called_once_with(*args, **kwargs) Assert that the mock was called exactly once and with the specified arguments.
lineno The line number within the string containing this example where the example begins. This line number is zero-based with
countTestCases() Return the number of tests represented by this test object. For TestCase instances, this will
@unittest.skip(reason) Unconditionally skip the decorated test. reason should describe why the test is being skipped
tearDownClass() A class method called after tests in an individual class have run. tearDownClass is called with
Page 9 of 28