| 1 | from labgrid.resource import RawSerialPort # pylint: disable=import-error |
| 2 | |
| 3 | |
| 4 | class TestSerialPort: |
| 5 | def test_instanziation(self): |
| 6 | s = RawSerialPort(None, 'serial', 'port') |
| 7 | assert (s.port == 'port') |
| 8 | |
| 9 | def test_instanziation_with(self, target): |
| 10 | s = RawSerialPort(target, 'serial', 'port', 115200) |
| 11 | assert (s.port == 'port') |
| 12 | assert (s.speed == 115200) |
| 13 | assert s in target.resources |