interface documentation
class ITestCase(zi.Interface): (source)
Known implementations: twisted.trial.runner.TestHolder
, twisted.trial.unittest.TestCase
, twisted.trial.unittest.TestDecorator
The interface that a test case must implement in order to be used in Trial.
Method | __call__ |
Run the test. Should always do exactly the same thing as run(). |
Method | count |
Return the number of tests in this test case. Usually 1. |
Method | id |
Return a unique identifier for the test, usually the fully-qualified Python name. |
Method | run |
Run the test, storing the results in result. |
Method | short |
Return a short description of the test. |
Attribute | failure |
The exception class that is raised by failed assertions |