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

Method test_wait_closed

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

Source from the content-addressed store, hash-verified

406 self.assertTrue(self.protocol.closed)
407
408 def test_wait_closed(self):
409 wait_closed = self.loop.create_task(self.protocol.wait_closed())
410 self.assertFalse(wait_closed.done())
411 self.close_connection()
412 self.assertTrue(wait_closed.done())
413
414 def test_close_code(self):
415 self.close_connection(CloseCode.GOING_AWAY, "Bye!")

Callers

nothing calls this directly

Calls 2

close_connectionMethod · 0.95
wait_closedMethod · 0.45

Tested by

no test coverage detected