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

Method test_send_text

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

Source from the content-addressed store, hash-verified

617 # Test the send coroutine.
618
619 def test_send_text(self):
620 self.loop.run_until_complete(self.protocol.send("café"))
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"))

Callers

nothing calls this directly

Calls 3

assertOneFrameSentMethod · 0.95
sendMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected