Lines Matching +full:protocol +full:- +full:tests
3 # This file is part of pySerial - Cross platform serial port support for Python
6 # SPDX-License-Identifier: BSD-3-Clause
18 # on which port should the tests be performed:
36 with serial.threaded.ReaderThread(ser, TestLines) as protocol:
37 protocol.write_line('hello')
38 protocol.write_line('world')
40 self.assertEqual(protocol.received_lines, ['hello', 'world'])
59 with serial.threaded.ReaderThread(ser, TestFramedPacket) as protocol:
60 protocol.send_packet(b'1')
61 protocol.send_packet(b'2')
62 protocol.send_packet(b'3')
64 self.assertEqual(protocol.received_packets, [b'1', b'2', b'3'])
73 sys.argv[1:] = ['-v']
74 # When this module is executed from the command-line, it runs all its tests