doctest.testfile(filename, module_relative=True, name=None, package=None, globs=None, verbose=None, report=True, optionflags=0, extraglobs=None, raise_on_error=False
countTestCases() Return the number of tests represented by this test object, including all individual tests and sub-suites.
startTestRun() Called once before any tests are executed.
EnvironmentVarGuard.unset(envvar) Temporarily unset the environment variable envvar.
source A string containing the example’s source code. This source code consists of a single Python statement, and always ends
exception unittest.SkipTest(reason) This exception is raised to skip a test. Usually you can
class typing.Generator(Iterator[T_co], Generic[T_co, T_contra, V_co]) A generator can be annotated by the generic type
@unittest.skipUnless(condition, reason) Skip the decorated test unless condition is true.
assertRaises(exception, callable, *args, **kwds) assertRaises(exception, msg=None) Test that an exception is raised
fail(msg=None) Signals a test failure unconditionally, with msg or None for the error message.
Page 25 of 28