00001 """
00002 fake.py
00003
00004 By Paul Malmsten, 2010
00005 pmalmsten@gmail.com
00006
00007 Provides fake objects for testing the dispatch package.
00008 """
00009
00010 class FakeXBee(object):
00011 """
00012 Represents an XBee device from which data can be read.
00013 """
00014 def __init__(self, data):
00015 self.data = data
00016
00017 def wait_read_frame(self):
00018 return self.data