(self)
| 234 | """ |
| 235 | |
| 236 | def test_client_sends_text(self): |
| 237 | client = Protocol(CLIENT) |
| 238 | with patch("secrets.token_bytes", return_value=b"\x00\x00\x00\x00"): |
| 239 | client.send_text("😀".encode()) |
| 240 | self.assertEqual( |
| 241 | client.data_to_send(), [b"\x81\x84\x00\x00\x00\x00\xf0\x9f\x98\x80"] |
| 242 | ) |
| 243 | |
| 244 | def test_server_sends_text(self): |
| 245 | server = Protocol(SERVER) |
nothing calls this directly
no test coverage detected