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

Method test_server_receives_text

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

Source from the content-addressed store, hash-verified

255 )
256
257 def test_server_receives_text(self):
258 server = Protocol(SERVER)
259 server.receive_data(b"\x81\x84\x00\x00\x00\x00\xf0\x9f\x98\x80")
260 self.assertFrameReceived(
261 server,
262 Frame(OP_TEXT, "😀".encode()),
263 )
264
265 def test_client_receives_text_over_size_limit(self):
266 client = Protocol(CLIENT, max_size=3)

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