Public Member Functions | |
def | setUp |
def | test_callback_is_called_when_registered |
def | test_callback_name_collisions_raise_valueerror |
def | test_callback_not_called_when_filter_not_satisfied |
def | test_multiple_callbacks |
Public Attributes | |
callback_check | |
dispatch | |
xbee |
Tests xbee.helpers.dispatch for expected behavior
Definition at line 20 of file test_dispatch.py.
Definition at line 25 of file test_dispatch.py.
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.
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.
Definition at line 25 of file test_dispatch.py.
Definition at line 25 of file test_dispatch.py.
Definition at line 25 of file test_dispatch.py.