autobahn.twisted.test.test_tx_application_runner


Module Contents

Classes

TestApplicationRunner

A unit test. The atom of the unit testing universe.

Functions

raise_error(*args, **kw)

autobahn.twisted.test.test_tx_application_runner.raise_error(*args, **kw)[source]
class autobahn.twisted.test.test_tx_application_runner.TestApplicationRunner(methodName='runTest')[source]

Bases: twisted.trial.unittest.TestCase

A unit test. The atom of the unit testing universe.

This class extends L{SynchronousTestCase} which extends C{unittest.TestCase} from the standard library. The main feature is the ability to return C{Deferred}s from tests and fixture methods and to have the suite wait for those C{Deferred}s to fire. Also provides new assertions such as L{assertFailure}.

@ivar timeout: A real number of seconds. If set, the test will raise an error if it takes longer than C{timeout} seconds. If not set, util.DEFAULT_TIMEOUT_DURATION is used.

test_runner_default(fakereactor)[source]
test_runner_no_run(fakereactor)[source]
test_runner_no_run_happypath(fakereactor)[source]
test_runner_bad_proxy(fakereactor)[source]
test_runner_proxy(fakereactor)[source]