MCPcopy Index your code
hub / github.com/python-websockets/websockets / test_client_receives_text

Method test_client_receives_text

tests/test_protocol.py:249–255  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

247 self.assertEqual(server.data_to_send(), [b"\x81\x04\xf0\x9f\x98\x80"])
248
249 def test_client_receives_text(self):
250 client = Protocol(CLIENT)
251 client.receive_data(b"\x81\x04\xf0\x9f\x98\x80")
252 self.assertFrameReceived(
253 client,
254 Frame(OP_TEXT, "😀".encode()),
255 )
256
257 def test_server_receives_text(self):
258 server = Protocol(SERVER)

Callers

nothing calls this directly

Calls 5

receive_dataMethod · 0.95
FrameClass · 0.90
assertFrameReceivedMethod · 0.80
ProtocolClass · 0.50
encodeMethod · 0.45

Tested by

no test coverage detected