run(result) Run the tests associated with this suite, collecting the result into the test result object passed as result
discover(start_dir, pattern='test*.py', top_level_dir=None) Find all the test modules by recursing into subdirectories from
class test.support.WarningsRecorder Class used to record warnings for unit tests. See documentation of check_warnings()
class typing.io Wrapper namespace for I/O stream types. This defines the generic type IO[AnyStr]
test.support.requires(resource, msg=None) Raise ResourceDenied if resource is not available. msg
class test.support.EnvironmentVarGuard Class used to temporarily set or unset environment variables. Instances can be used as
assertFalse(expr, msg=None) Test that expr is true (or false). Note that this is equivalent
DocTestFailure.got The example’s actual output.
exception test.support.TestFailed Exception to be raised when a test fails. This is deprecated in favor of
@test.support.anticipate_failure(condition) A decorator to conditionally mark tests with
Page 7 of 28