Esempio n. 1
0
 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
Esempio n. 2
0
 def create(self):
     conf = testing.GetConfigForTesting()
     c = upload.APIClient(conf)
     c.SetServer('host.example.com', 123)
     return c
Esempio n. 3
0
def liveTest():
    conf = testing.GetConfigForTesting()
    c = upload.APIClient(conf)
    c.SetServer('localhost', 5051)

    print c.PostPacket('test_satellite', 569, '\xab\x00\x5a')
Esempio n. 4
0
def liveTest():
    conf = testing.GetConfigForTesting()
    c = api.APIClient(conf)
    c.SetServer('api.carpcomm.com', 5051)

    print c.PostPacket('test_satellite', 569, '\xab\x00\x5a')