class documentation

class twisted.trial.unittest.PyUnitResultAdapter: (source)

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.Failures being passed to addError and addFailure.

Method __init__
Instance Variable original Undocumented
Method startTest Undocumented
Method stopTest Undocumented
Method addFailure Undocumented
Method addError Undocumented
Method addSkip Report the skip as a failure.
Method addUnexpectedSuccess Report the unexpected success as a failure.
Method addExpectedFailure Report the expected failure (i.e. todo) as a failure.
Method addSuccess Undocumented
Method upDownError Undocumented
Method _exc_info Undocumented
Method _unsupported Undocumented
def __init__(self, original): (source)
ParametersoriginalA TestResult instance from unittest.
original = (source)

Undocumented

def _exc_info(self, err): (source)

Undocumented

def startTest(self, method): (source)

Undocumented

def stopTest(self, method): (source)

Undocumented

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

Undocumented

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

Undocumented

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

Undocumented

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

Report the skip as a failure.

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

Report the unexpected success as a failure.

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

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

def addSuccess(self, test): (source)

Undocumented

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

Undocumented

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.