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.Failures 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
originalA 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