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

Method test_send_binary

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

Source from the content-addressed store, hash-verified

621 self.assertOneFrameSent(True, OP_TEXT, "café".encode())
622
623 def test_send_binary(self):
624 self.loop.run_until_complete(self.protocol.send(b"tea"))
625 self.assertOneFrameSent(True, OP_BINARY, b"tea")
626
627 def test_send_binary_from_bytearray(self):
628 self.loop.run_until_complete(self.protocol.send(bytearray(b"tea")))

Callers

nothing calls this directly

Calls 2

assertOneFrameSentMethod · 0.95
sendMethod · 0.45

Tested by

no test coverage detected