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

Method test_client_sends_close

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

Source from the content-addressed store, hash-verified

1674 self.assertFalse(server.close_expected())
1675
1676 def test_client_sends_close(self):
1677 client = Protocol(CLIENT)
1678 client.send_close()
1679 self.assertTrue(client.close_expected())
1680
1681 def test_server_sends_close(self):
1682 server = Protocol(SERVER)

Callers

nothing calls this directly

Calls 3

send_closeMethod · 0.95
close_expectedMethod · 0.95
ProtocolClass · 0.50

Tested by

no test coverage detected