ClientProtocol bypasses the opening handshake.
(self)
| 644 | |
| 645 | class MiscTests(unittest.TestCase): |
| 646 | def test_bypass_handshake(self): |
| 647 | """ClientProtocol bypasses the opening handshake.""" |
| 648 | client = ClientProtocol(URI, state=OPEN) |
| 649 | client.receive_data(b"\x81\x06Hello!") |
| 650 | [frame] = client.events_received() |
| 651 | self.assertEqual(frame, Frame(OP_TEXT, b"Hello!")) |
| 652 | |
| 653 | def test_custom_logger(self): |
| 654 | """ClientProtocol accepts a logger argument.""" |
nothing calls this directly
no test coverage detected