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
def serial_port(target): return RawSerialPort(target, 'serial', '/dev/test')
def test_instanziation(self): s = RawSerialPort(None, 'serial', 'port') assert (s.port == 'port')