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

Method test_server_sends_pong

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

Source from the content-addressed store, hash-verified

1223 self.assertEqual(client.data_to_send(), [b"\x8a\x80\x00\x44\x88\xcc"])
1224
1225 def test_server_sends_pong(self):
1226 server = Protocol(SERVER)
1227 server.send_pong(b"")
1228 self.assertEqual(server.data_to_send(), [b"\x8a\x00"])
1229
1230 def test_client_receives_pong(self):
1231 client = Protocol(CLIENT)

Callers

nothing calls this directly

Calls 3

send_pongMethod · 0.95
data_to_sendMethod · 0.95
ProtocolClass · 0.50

Tested by

no test coverage detected