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

Method test_server_sends_ping

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

Source from the content-addressed store, hash-verified

1064 self.assertEqual(client.data_to_send(), [b"\x89\x80\x00\x44\x88\xcc"])
1065
1066 def test_server_sends_ping(self):
1067 server = Protocol(SERVER)
1068 server.send_ping(b"")
1069 self.assertEqual(server.data_to_send(), [b"\x89\x00"])
1070
1071 def test_client_receives_ping(self):
1072 client = Protocol(CLIENT)

Callers

nothing calls this directly

Calls 3

send_pingMethod · 0.95
data_to_sendMethod · 0.95
ProtocolClass · 0.50

Tested by

no test coverage detected