module documentation
(source)

Things likely to be used by writers of unit tests.

Maintainer: Jonathan Lange

Class ​Unsupported​Trial​Feature A feature of twisted.trial was used that pyunit cannot support.
Class _​Assertions Replaces many of the built-in TestCase assertions. In general, these assertions provide better error messages and are easier to use in callbacks.
Class _​Assert​Raises​Context A helper for implementing assertRaises. This is a context manager and a helper method to support the non-context manager version of assertRaises.
Class _​Log​Observer Observes the Twisted logs and catches any errors.
Class _​Warning No summary
Function _collect​Warnings Call f with args positional arguments and kwargs keyword arguments and collect all warnings which are emitted as a result in a list.
Function _set​Warning​Registry​To​None Disable the per-module cache for every module found in modules, typically sys.modules.
Variable _log​Observer Undocumented
def _collectWarnings(observeWarning, f, *args, **kwargs): (source)
Call f with args positional arguments and kwargs keyword arguments and collect all warnings which are emitted as a result in a list.
Parameters
observe​WarningA callable which will be invoked with a _Warning instance each time a warning is emitted.
fUndocumented
*argsUndocumented
**kwargsUndocumented
Returns
The return value of f(*args, **kwargs).
def _setWarningRegistryToNone(modules): (source)
Disable the per-module cache for every module found in modules, typically sys.modules.
Parameters
modulesDictionary of modules, typically sys.module dict
_logObserver = (source)

Undocumented