Module Expr Str Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list
N/A N/A 
test_xbee.py

By Paul Malmsten, 2010
pmalmsten@gmail.com

Tests fake device objects for proper functionality.
 N/A unittest xbee.tests.Fake FakeReadDevice TestFakeReadDevice N/A N/A unittest TestCase N/A N/A 
    FakeReadDevice class should work as intended to emluate a serial 
    port
     setUp N/A N/A self N/A N/A N/A 
        Create a fake read device for each test
         N/A N/A self device N/A FakeReadDevice test N/A test_read_single_byte N/A N/A self N/A N/A N/A 
        reading one byte at a time should work as expected
         N/A N/A N/A self assertEqual N/A N/A N/A self device read t N/A N/A N/A self assertEqual N/A N/A N/A self device read e N/A N/A N/A self assertEqual N/A N/A N/A self device read s N/A N/A N/A self assertEqual N/A N/A N/A self device read t N/A test_read_multiple_bytes N/A N/A self N/A N/A N/A 
        reading multiple bytes at a time should work as expected
         N/A N/A N/A self assertEqual N/A N/A N/A self device read 3 tes N/A N/A N/A self assertEqual N/A N/A N/A self device read t N/A test_read_too_many N/A N/A self N/A N/A N/A 
        attempting to read too many bytes should raise an exception
         N/A N/A N/A self assertRaises ValueError N/A N/A self device read 5 N/A N/A