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

Method test_ping_binary

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

Source from the content-addressed store, hash-verified

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"))
834 self.assertOneFrameSent(True, OP_PING, b"tea")
835
836 def test_ping_binary_from_bytearray(self):
837 self.loop.run_until_complete(self.protocol.ping(bytearray(b"tea")))

Callers

nothing calls this directly

Calls 2

assertOneFrameSentMethod · 0.95
pingMethod · 0.45

Tested by

no test coverage detected