ServerProtocol bypasses the opening handshake.
(self)
| 937 | |
| 938 | class MiscTests(unittest.TestCase): |
| 939 | def test_bypass_handshake(self): |
| 940 | """ServerProtocol bypasses the opening handshake.""" |
| 941 | server = ServerProtocol(state=OPEN) |
| 942 | server.receive_data(b"\x81\x86\x00\x00\x00\x00Hello!") |
| 943 | [frame] = server.events_received() |
| 944 | self.assertEqual(frame, Frame(OP_TEXT, b"Hello!")) |
| 945 | |
| 946 | def test_custom_logger(self): |
| 947 | """ServerProtocol accepts a logger argument.""" |
nothing calls this directly
no test coverage detected