Individual test case execution for tests that return Deferreds.

This module is highly experimental and is liable to change in ways that cause subtle failures in tests. Use at your own peril.

Class SynchronousDeferredRunTest Runner for tests that return synchronous Deferreds.
Function run_with_log_observers Run 'function' with the given Twisted log observers.
Class AsynchronousDeferredRunTest Runner for tests that return Deferreds that fire asynchronously.
Class AsynchronousDeferredRunTestForBrokenTwisted Test runner that works around Twisted brokenness re reactor junk.
Function assert_fails_with Assert that 'd' will fail with one of 'exc_types'.
Function flush_logged_errors Undocumented
Class UncleanReactorError Raised when the reactor has junk in it.
Class _DeferredRunTest Base for tests that return Deferreds.
def run_with_log_observers(observers, function, *args, **kwargs):
Run 'function' with the given Twisted log observers.
def assert_fails_with(d, *exc_types, **kwargs):

Assert that 'd' will fail with one of 'exc_types'.

The normal way to use this is to return the result of 'assert_fails_with' from your unit test.

Note that this function is experimental and unstable. Use at your own peril; expect the API to change.

ParametersdA Deferred that is expected to fail.
exc_typesThe exception types that the Deferred is expected to fail with.
failureExceptionAn optional keyword argument. If provided, will raise that exception instead of testtools.TestCase.failureException.
ReturnsA Deferred that will fail with an AssertionError if 'd' does not fail with one of the exception types.
def flush_logged_errors(*error_types):
Undocumented
API Documentation for testtools, generated by pydoctor at 2015-07-01 16:11:28.