Public Member Functions | Public Attributes | List of all members
xbee.tests.test_base.TestAsyncCallback Class Reference
Inheritance diagram for xbee.tests.test_base.TestAsyncCallback:
Inheritance graph
[legend]

Public Member Functions

def setUp (self)
 
def tearDown (self)
 
def test_provide_callback (self)
 

Public Attributes

 callback
 
 serial
 
 xbee
 

Detailed Description

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.

Member Function Documentation

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.

Member Data Documentation

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.


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


rosserial_xbee
Author(s): Adam Stambler
autogenerated on Mon Jun 10 2019 14:53:52