Part of twisted.trial View Source
Things likely to be used by writers of unit tests.
Maintainer: Jonathan Lange <jml@twistedmatrix.com>Class | SkipTest | Raise this (with a reason) to skip the current test. You may also set |
Class | FailTest | Raised to indicate the current test has failed to pass. |
Class | Todo | Internal object used to mark a TestCase as
'todo'. Tests marked 'todo'
|
Function | makeTodo | Return a Todo object
built from value .
|
Class | _Assertions | Replaces many of the built-in TestCase assertions. In general, these |
Class | _LogObserver | Observes the Twisted logs and catches any errors. |
Class | TestCase | A unit test. The atom of the unit testing universe. |
Class | UnsupportedTrialFeature | A feature of twisted.trial was used that pyunit cannot support. |
Class | PyUnitResultAdapter | Wrap a TestResult from the standard library's
unittest so that it
|
Class | _SubTestCase | No class docstring; 1/1 methods documented |
Function | deprecate | Internal method used to deprecate top-level assertions. Do not use this. |
Return a Todo
object
built from value
.
value
is a string, return a Todo that expects any
exception with value
as a reason. If value
is a
tuple, the second element is used as the reason and the first element as
the excepted error(s).
Parameters | value | A string or a tuple of (errors, reason) , where
errors is either a single exception class or an iterable of
exception classes.
|
Returns | A Todo
object.
|