Пример #1
0
 def test_instanziation_with(self, target):
     s = RawSerialPort(target, 'serial', 'port', 115200)
     assert (s.port == 'port')
     assert (s.speed == 115200)
     assert s in target.resources
Пример #2
0
def serial_port(target):
    return RawSerialPort(target, 'serial', '/dev/test')
Пример #3
0
 def test_instanziation(self):
     s = RawSerialPort(None, 'serial', 'port')
     assert (s.port == 'port')