Public Member Functions | Public Attributes | List of all members
xbee.helpers.dispatch.tests.test_dispatch.TestDispatch Class Reference
Inheritance diagram for xbee.helpers.dispatch.tests.test_dispatch.TestDispatch:
Inheritance graph
[legend]

Public Member Functions

def setUp (self)
 
def test_callback_is_called_when_registered (self)
 
def test_callback_name_collisions_raise_valueerror (self)
 
def test_callback_not_called_when_filter_not_satisfied (self)
 
def test_multiple_callbacks (self)
 

Public Attributes

 callback_check
 
 dispatch
 
 xbee
 

Detailed Description

Tests xbee.helpers.dispatch for expected behavior

Definition at line 20 of file test_dispatch.py.

Member Function Documentation

def xbee.helpers.dispatch.tests.test_dispatch.TestDispatch.setUp (   self)

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.

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.

Member Data Documentation

xbee.helpers.dispatch.tests.test_dispatch.TestDispatch.callback_check

Definition at line 28 of file test_dispatch.py.

xbee.helpers.dispatch.tests.test_dispatch.TestDispatch.dispatch

Definition at line 27 of file test_dispatch.py.

xbee.helpers.dispatch.tests.test_dispatch.TestDispatch.xbee

Definition at line 26 of file test_dispatch.py.


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


rosserial_xbee
Author(s): Adam Stambler
autogenerated on Fri Jun 7 2019 22:03:11