Home | Trees | Index | Help |
|
---|
Package twisted :: Package trial :: Module util |
|
Function Summary | |
---|---|
_append(result,
lst)
| |
_getDeferredResult(d,
timeout)
| |
Waits for deferred to fail, and it returns the Failure. | |
Waits for a Deferred to arrive, then returns or throws an exception, based on the result. | |
Extract a list of frames from a traceback, without unittest internals. | |
A formatted traceback and exception, without exposing the framework. | |
isTestCase(testCase)
| |
isTestClass(testClass)
| |
reactorCleanUp()
| |
This function is unstable. |
Variable Summary | |
---|---|
list |
_failureConditionals = ['fail', 'failIf', 'failUnless', ...
|
Function Details |
---|
deferredError(d, timeout=None)Waits for deferred to fail, and it returns the Failure. If the deferred succeeds, raises FailTest. |
deferredResult(d, timeout=None)Waits for a Deferred to arrive, then returns or throws an exception, based on the result. |
extract_tb(tb, limit=None)Extract a list of frames from a traceback, without unittest internals. Functionally identical totraceback.extract_tb , but
cropped to just the test case itself, excluding frames that are part of
the Trial testing framework.
|
format_exception(eType, eValue, tb, limit=None)A formatted traceback and exception, without exposing the framework. I am identical in function totraceback.format_exception , but I screen out frames from
the traceback that are part of the testing framework itself, leaving
only the code being tested.
|
wait(d, timeout=10)This function is unstable. Waits (spins the reactor) for a Deferred to arrive, then returns or throws an exception, based on the result. The difference between this and deferredResult is that it actually throws the original exception, not the Failure, so synchronous exception handling is much more sane. |
Variable Details |
---|
_failureConditionals
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:34 2004 | http://epydoc.sf.net |