Class t.t.r.ErrorHolder(TestHolder):

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

Used to insert arbitrary errors into a test suite run. Provides enough methods to look like a TestCase, however, when it is run, it simply adds an error to the TestResult. The most common use-case is for when a module fails to import.
Method __init__
Method __repr__ Undocumented
Method run Undocumented
Method __call__ Undocumented
Method countTestCases Undocumented
Method visit See unittest.TestCase.visit.

Inherited from TestHolder:

Method id Undocumented
Method shortDescription Undocumented
def __init__(self, description, error): (source)
ParametersdescriptionA string used by TestResults to identify this error. Generally, this is the name of a module that failed to import.
errorThe error to be added to the result. Can be an exc_info tuple or a twisted.python.failure.Failure.
def __repr__(self): (source)
Undocumented
def run(self, result): (source)
Undocumented
def __call__(self, result): (source)
Undocumented
def countTestCases(self): (source)
Undocumented
def visit(self, visitor): (source)
See unittest.TestCase.visit.
API Documentation for twisted, generated by pydoctor.