Class t.t.r.TestResult(pyunit.TestResult, object):

Part of twisted.trial.reporter View Source View In Hierarchy

Known subclasses: twisted.trial.reporter.Reporter

Accumulates the results of several twisted.trial.unittest.TestCases.
Method __init__ Undocumented
Method __repr__ Undocumented
Method _getTime Undocumented
Method startTest This must be called before the given test is commenced.
Method stopTest This must be called after the given test is completed.
Method addFailure Report a failed assertion for the given test.
Method addError Report an error that occurred while running the given test.
Method addSkip Report that the given test was skipped.
Method addUnexpectedSuccess Report that the given test succeeded against expectations.
Method addExpectedFailure Report that the given test succeeded against expectations.
Method addSuccess Report that the given test succeeded.
Method upDownError Undocumented
Method cleanupErrors Report an error that occurred during the cleanup between tests.
Method startSuite Undocumented
Method endSuite Undocumented
def __init__(self): (source)
Undocumented
def __repr__(self): (source)
Undocumented
def _getTime(self): (source)
Undocumented
def startTest(self, test): (source)
This must be called before the given test is commenced.
Parameterstest(type: pyunit.TestCase )
def stopTest(self, test): (source)
This must be called after the given test is completed.
Parameterstest(type: pyunit.TestCase )
def addFailure(self, test, fail): (source)
Report a failed assertion for the given test.
Parameterstest(type: pyunit.TestCase )
fail(type: failure.Failure or tuple )
def addError(self, test, error): (source)
Report an error that occurred while running the given test.
Parameterstest(type: pyunit.TestCase )
fail(type: failure.Failure or tuple )
def addSkip(self, test, reason): (source)

Report that the given test was skipped.

In Trial, tests can be 'skipped'. Tests are skipped mostly because there is some platform or configuration issue that prevents them from being run correctly.
Parameterstest(type: pyunit.TestCase )
reason(type: str )
def addUnexpectedSuccess(self, test, todo): (source)

Report that the given test succeeded against expectations.

In Trial, tests can be marked 'todo'. That is, they are expected to fail. When a test that is expected to fail instead succeeds, it should call this method to report the unexpected success.
Parameterstest(type: pyunit.TestCase )
todo(type: unittest.Todo )
def addExpectedFailure(self, test, error, todo): (source)

Report that the given test succeeded against expectations.

In Trial, tests can be marked 'todo'. That is, they are expected to fail.
Parameterstest(type: pyunit.TestCase )
error(type: failure.Failure )
todo(type: unittest.Todo )
def addSuccess(self, test): (source)
Report that the given test succeeded.
Parameterstest(type: pyunit.TestCase )
def upDownError(self, method, error, warn, printStatus): (source)
Undocumented
def cleanupErrors(self, errs): (source)
Report an error that occurred during the cleanup between tests.
def startSuite(self, name): (source)
Undocumented
def endSuite(self, name): (source)
Undocumented
API Documentation for twisted, generated by pydoctor.