Tests xbee.helpers.dispatch for expected behavior
Definition at line 20 of file test_dispatch.py.
def xbee.helpers.dispatch.tests.test_dispatch.TestDispatch.setUp |
( |
|
self | ) |
|
def xbee.helpers.dispatch.tests.test_dispatch.TestDispatch.test_callback_is_called_when_registered |
( |
|
self | ) |
|
After registerring a callback function with a filter function,
the callback should be called when data arrives.
Definition at line 30 of file test_dispatch.py.
def xbee.helpers.dispatch.tests.test_dispatch.TestDispatch.test_callback_name_collisions_raise_valueerror |
( |
|
self | ) |
|
If a call to register() results in attempting to register a
callback with the same name as another callback should result
in a ValueError exception being raised.
Definition at line 67 of file test_dispatch.py.
def xbee.helpers.dispatch.tests.test_dispatch.TestDispatch.test_callback_not_called_when_filter_not_satisfied |
( |
|
self | ) |
|
After registerring a callback function with a filter function,
the callback should not be called if a packet which does not
satisfy the callback's filter arrives.
Definition at line 39 of file test_dispatch.py.
def xbee.helpers.dispatch.tests.test_dispatch.TestDispatch.test_multiple_callbacks |
( |
|
self | ) |
|
Many callbacks should be called on the same packet if each
callback's filter method is satisfied.
Definition at line 49 of file test_dispatch.py.
xbee.helpers.dispatch.tests.test_dispatch.TestDispatch.callback_check |
xbee.helpers.dispatch.tests.test_dispatch.TestDispatch.dispatch |
xbee.helpers.dispatch.tests.test_dispatch.TestDispatch.xbee |
The documentation for this class was generated from the following file: