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

Method test_closed

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

Source from the content-addressed store, hash-verified

401 self.assertFalse(self.protocol.open)
402
403 def test_closed(self):
404 self.assertFalse(self.protocol.closed)
405 self.close_connection()
406 self.assertTrue(self.protocol.closed)
407
408 def test_wait_closed(self):
409 wait_closed = self.loop.create_task(self.protocol.wait_closed())

Callers

nothing calls this directly

Calls 1

close_connectionMethod · 0.95

Tested by

no test coverage detected