test.support.temp_dir(path=None, quiet=False) A context manager that creates a temporary directory at path and yields
doctest.testsource(module, name) Convert the doctest for an object to a script. Argument module
testMethodPrefix String giving the prefix of method names which will be interpreted as test methods. The default value is 'test'
find(obj[, name][, module][, globs][, extraglobs]) Return a list of the DocTests that are defined by obj‘s
testsRun The total number of tests run so far.
assertEqual(first, second, msg=None) Test that first and second are equal. If the values do not compare equal
test.support.bind_port(sock, host=HOST) Bind the socket to a free port and return the port number. Relies on ephemeral ports
class test.support.EnvironmentVarGuard Class used to temporarily set or unset environment variables. Instances can be used as
class typing.MutableSequence(Sequence[T]) A generic version of
doctest.debug_src(src, pm=False, globs=None) Debug the doctests in a string. This is like function
Page 8 of 28