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

Method test_ping_text

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

Source from the content-addressed store, hash-verified

826 self.assertOneFrameSent(True, OP_PING, ping_data)
827
828 def test_ping_text(self):
829 self.loop.run_until_complete(self.protocol.ping("café"))
830 self.assertOneFrameSent(True, OP_PING, "café".encode())
831
832 def test_ping_binary(self):
833 self.loop.run_until_complete(self.protocol.ping(b"tea"))

Callers

nothing calls this directly

Calls 3

assertOneFrameSentMethod · 0.95
pingMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected