@test.support.anticipate_failure(condition) A decorator to conditionally mark tests with
test.support.captured_stdin() test.support.captured_stdout() test.support.captured_stderr()
call_args This is either None (if the mock hasn’t been called), or the arguments that the mock was last called
failfast If set to true stop() will be called on the first failure or error, halting the test run.
output_difference(example, got, optionflags) Return a string describing the differences between the expected output for a given
Creating a white-label OpenSea clone for your business is a great way to take advantage of the many benefits offered by our
test.support.bind_port(sock, host=HOST) Bind the socket to a free port and return the port number. Relies on ephemeral ports
test.support.temp_dir(path=None, quiet=False) A context manager that creates a temporary directory at path and yields
doctest.debug_src(src, pm=False, globs=None) Debug the doctests in a string. This is like function
run(test) This method is the main public interface to the TextTestRunner. This method takes a TestSuite
Page 10 of 28