(self)
| 540 | """ |
| 541 | |
| 542 | def test_client_sends_binary(self): |
| 543 | client = Protocol(CLIENT) |
| 544 | with patch("secrets.token_bytes", return_value=b"\x00\x00\x00\x00"): |
| 545 | client.send_binary(b"\x01\x02\xfe\xff") |
| 546 | self.assertEqual( |
| 547 | client.data_to_send(), [b"\x82\x84\x00\x00\x00\x00\x01\x02\xfe\xff"] |
| 548 | ) |
| 549 | |
| 550 | def test_server_sends_binary(self): |
| 551 | server = Protocol(SERVER) |
nothing calls this directly
no test coverage detected