class documentation
class ErrorHolderTestsMixin: (source)
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 |
|
Stub for TestResult . |
Method | test |
runner.ErrorHolder adds an error to the result when called. |
Method | test_count |
runner.ErrorHolder.countTestCases always returns 0. |
Method | test |
runner.ErrorHolder.__repr__ returns a string describing the error it holds. |
Method | test |
runner.ErrorHolder adds an error to the result when run. |
Method | test_runs |
A runner.ErrorHolder can run against the standard Python TestResult. |
Class Variable | exception |
Undocumented |