Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`trial`.`unittest`.`PyUnitResultAdapter``

class documentation

`class PyUnitResultAdapter: (source)`

Constructor: `PyUnitResultAdapter(original)`

View In Hierarchy

Wrap a `TestResult` from the standard library's `unittest` so that it supports the extended result types from Trial, and also supports `twisted.python.failure.Failure`s being passed to `addError` and `addFailure`.

Method | `__init__` | No summary
Method | `addError` | Undocumented
Method | `addExpectedFailure` | Report the expected failure (i.e. todo) as a failure.
Method | `addFailure` | Undocumented
Method | `addSkip` | Report the skip as a failure.
Method | `addSuccess` | Undocumented
Method | `addUnexpectedSuccess` | Report the unexpected success as a failure.
Method | `startTest` | Undocumented
Method | `stopTest` | Undocumented
Method | `upDownError` | Undocumented
Instance Variable | `original` | Undocumented
Method | `_exc_info` | Undocumented
Method | `_unsupported` | Undocumented

def __init__(self, original): (source)

Parameters
original | A `TestResult` instance from `unittest`.

def addError(self, test, error): (source)

Undocumented

def addExpectedFailure(self, test, error): (source)

Report the expected failure (i.e. todo) as a failure.

def addFailure(self, test, fail): (source)

Undocumented

def addSkip(self, test, reason): (source)

Report the skip as a failure.

def addSuccess(self, test): (source)

Undocumented

def addUnexpectedSuccess(self, test, todo=None): (source)

Report the unexpected success as a failure.

def startTest(self, method): (source)

Undocumented

def stopTest(self, method): (source)

Undocumented

def upDownError(self, method, error, warn, printStatus): (source)

Undocumented

original = (source)

Undocumented

def _exc_info(self, err): (source)

Undocumented

def _unsupported(self, test, feature, info): (source)

Undocumented