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

Method test_server_sends_binary

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

Source from the content-addressed store, hash-verified

548 )
549
550 def test_server_sends_binary(self):
551 server = Protocol(SERVER)
552 server.send_binary(b"\x01\x02\xfe\xff")
553 self.assertEqual(server.data_to_send(), [b"\x82\x04\x01\x02\xfe\xff"])
554
555 def test_client_receives_binary(self):
556 client = Protocol(CLIENT)

Callers

nothing calls this directly

Calls 3

send_binaryMethod · 0.95
data_to_sendMethod · 0.95
ProtocolClass · 0.50

Tested by

no test coverage detected