twisted.trial.test.test_runner.ErrorHolderTestsMixin(object)
class documentationtwisted.trial.test.test_runner
(View In Hierarchy)
Known subclasses: twisted.trial.test.test_runner.ExcInfoHoldingErrorHolderTests, twisted.trial.test.test_runner.FailureHoldingErrorHolderTests
This mixin defines test methods which can be applied to a runner.ErrorHolder
constructed with either a Failure
or a
exc_info
-style tuple.
Subclass this and implement setUp
to create
self.holder
referring to a runner.ErrorHolder
instance and self.error
referring to a Failure
which
the holder holds.
Class | TestResultStub | Stub for TestResult . |
Method | test_runsWithStandardResult | A runner.ErrorHolder
can run against the standard Python TestResult . |
Method | test_run | runner.ErrorHolder
adds an error to the result when run. |
Method | test_call | runner.ErrorHolder
adds an error to the result when called. |
Method | test_countTestCases | runner.ErrorHolder.countTestCases always returns 0. |
Method | test_repr | runner.ErrorHolder.__repr__
returns a string describing the error it holds. |
A runner.ErrorHolder
can run against the standard Python TestResult
.