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 method.skip to a reason string to skip it, or set class.skip to skip the entire TestCase. | 
| Class | FailTest | Raised to indicate the current test has failed to pass. | 
| Class | Todo | No summary | 
| Function | makeTodo | Return a Todoobject built 
fromvalue. | 
| 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 | No summary | 
| Function | suiteVisit | Visit each test in suitewithvisitor. | 
| Class | TestSuite | Extend the standard library's TestSuitewith support for 
the visitor pattern and a consistently overrideablerunmethod. | 
| Class | TestDecorator | Decorator for test cases. | 
| Function | decorate | Decorate all test cases in testwithdecorator. | 
| Function | __iter__ | Undocumented | 
| Class | _Assertions | Replaces many of the built-in TestCase assertions. In general, these 
assertions provide better error messages and are easier to use in 
callbacks. Also provides new assertions such as failUnlessFailure. | 
| Class | _LogObserver | Observes the Twisted logs and catches any errors. | 
| Class | _PyUnitTestCaseAdapter | Adapt from pyunit.TestCase to ITestCase. | 
| Class | _BrokenIDTestCaseAdapter | Adapter for pyunit-style TestCasesubclasses that have 
undesirable id() methods. That ispyunit.FunctionTestCaseandpyunit.DocTestCase. | 
| Class | _ForceGarbageCollectionDecorator | Forces garbage collection to be run before and after the test. Any errors logged during the post-test collection are added to the test result as errors. | 
| Function | _iterateTests | Iterate through all of the test cases in testSuiteOrCase. | 
| Class | _SubTestCase | Undocumented | 
| 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), whereerrorsis either a single exception class or an iterable of 
exception classes. | 
| Returns | A Todoobject. | |
Visit each test in suite with visitor.
| Parameters | visitor | A callable which takes a single argument, the TestCaseinstance to visit. | 
| Returns | None | |
Decorate all test cases in test with 
decorator.
test can be a test case or a test suite. If it is a test 
suite, then the structure of the suite is preserved.
decorate
tries to preserve the class of the test suites it finds. To do so, it 
reconstructs the suites and then adds the decorated tests. decorate 
assumes that suites passed to it can be constructed with no parameters.
testSuiteOrCase.