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

Method test_close_code

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

Source from the content-addressed store, hash-verified

412 self.assertTrue(wait_closed.done())
413
414 def test_close_code(self):
415 self.close_connection(CloseCode.GOING_AWAY, "Bye!")
416 self.assertEqual(self.protocol.close_code, CloseCode.GOING_AWAY)
417
418 def test_close_reason(self):
419 self.close_connection(CloseCode.GOING_AWAY, "Bye!")

Callers

nothing calls this directly

Calls 1

close_connectionMethod · 0.95

Tested by

no test coverage detected