MCPcopy Create free account
hub / github.com/python-websockets/websockets / test_recv_binary

Method test_recv_binary

tests/legacy/test_protocol.py:435–438  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

433 self.assertEqual(data, "café")
434
435 def test_recv_binary(self):
436 self.receive_frame(Frame(True, OP_BINARY, b"tea"))
437 data = self.loop.run_until_complete(self.protocol.recv())
438 self.assertEqual(data, b"tea")
439
440 def test_recv_on_closing_connection_local(self):
441 close_task = self.half_close_connection_local()

Callers

nothing calls this directly

Calls 3

receive_frameMethod · 0.95
FrameClass · 0.90
recvMethod · 0.45

Tested by

no test coverage detected