report_start(out, test, example) Report that the test runner is about to process the given example. This method is provided
attach_mock(mock, attribute) Attach a mock as an attribute of this one, replacing its name and parent. Calls to the attached
test.support.make_bad_fd() Create an invalid file descriptor by opening and closing a temporary file, and returning its descriptor
The latest trend in white
parse(string, name='') Divide the given string into examples and intervening text, and return them as a list of alternating
return_value Set this to configure the value returned by calling the mock:
test.support.find_unused_port(family=socket.AF_INET, socktype=socket.SOCK_STREAM) Returns an unused port that should be suitable
wasSuccessful() Return True if all tests run so far have passed, otherwise returns False.
loadTestsFromNames(names, module=None) Similar to loadTestsFromName(), but takes a sequence of names rather than
assertLogs(logger=None, level=None) A context manager to test that at least one message is logged on the logger or
Page 16 of 28