__iter__() Tests grouped by a TestSuite are always accessed by iteration. Subclasses can lazily provide tests by
subTest(msg=None, **params) Return a context manager which executes the enclosed code block as a subtest. msg and params
loadTestsFromTestCase(testCaseClass) Return a suite of all tests cases contained in the TestCase-derived
test.support.run_unittest(*classes) Execute
addTest(test) Add a TestCase or TestSuite to the suite.
EnvironmentVarGuard.unset(envvar) Temporarily unset the environment variable envvar.
class unittest.TextTestResult(stream, descriptions, verbosity) A concrete implementation of TestResult used by
skipped A list containing 2-tuples of TestCase instances and strings holding the reason for skipping the test.
class typing.AnyStr AnyStr is a type variable defined as AnyStr = TypeVar('AnyStr', str, bytes).
assertRaises(exception, callable, *args, **kwds) assertRaises(exception, msg=None) Test that an exception is raised
Page 25 of 28