Public Member Functions | |
def | setUp (self) |
def | tearDown (self) |
def | test_provide_callback (self) |
Public Attributes | |
callback | |
serial | |
xbee | |
XBeeBase constructor should accept an optional callback function argument. When provided, this will put the module into a threaded mode, in which it will call the provided function with any API frame data received. As it would be very difficult to sanely test an asynchonous callback routine with a synchronous test process, proper callback behavior is not tested automatically at this time. Theoretically, the callback implementation logic is simple, but use it at your own risk.
Definition at line 138 of file test_base.py.
def xbee.tests.test_base.TestAsyncCallback.setUp | ( | self | ) |
Definition at line 151 of file test_base.py.
def xbee.tests.test_base.TestAsyncCallback.tearDown | ( | self | ) |
Definition at line 156 of file test_base.py.
def xbee.tests.test_base.TestAsyncCallback.test_provide_callback | ( | self | ) |
XBeeBase constructor should accept a callback function
Definition at line 160 of file test_base.py.
xbee.tests.test_base.TestAsyncCallback.callback |
Definition at line 154 of file test_base.py.
xbee.tests.test_base.TestAsyncCallback.serial |
Definition at line 153 of file test_base.py.
xbee.tests.test_base.TestAsyncCallback.xbee |
Definition at line 152 of file test_base.py.