def config(self): section = serial_tnc.SerialTNC.__name__ conf = testing.GetConfigForTesting() conf.add_section(section) conf.set(section, 'device', '/dev/null') conf.set(section, 'baud', '9600') return conf
def create(self): conf = testing.GetConfigForTesting() c = upload.APIClient(conf) c.SetServer('host.example.com', 123) return c
def liveTest(): conf = testing.GetConfigForTesting() c = upload.APIClient(conf) c.SetServer('localhost', 5051) print c.PostPacket('test_satellite', 569, '\xab\x00\x5a')
def liveTest(): conf = testing.GetConfigForTesting() c = api.APIClient(conf) c.SetServer('api.carpcomm.com', 5051) print c.PostPacket('test_satellite', 569, '\xab\x00\x5a')