Logo Search packages:      
Sourcecode: telepathy-sofiasip version File versions

servicetest::EventTest Class Reference

List of all members.

Detailed Description

Somewhat odd event dispatcher for asynchronous tests.

Callbacks are kept in a queue. Incoming events are passed to the first
callback. If the callback returns True, the callback is removed. If the
callback raises AssertionError, the test fails. If there are no more
callbacks, the test passes. The reactor is stopped when the test passes.

Definition at line 71 of file servicetest.py.

Public Member Functions

def __init__
def call_handlers
def expect
def fail
def handle_event
def log
def timeout_cb
def try_stop

Public Attributes


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index