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

Method test_open

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

Source from the content-addressed store, hash-verified

396 self.protocol.transport = _transport
397
398 def test_open(self):
399 self.assertTrue(self.protocol.open)
400 self.close_connection()
401 self.assertFalse(self.protocol.open)
402
403 def test_closed(self):
404 self.assertFalse(self.protocol.closed)

Callers

nothing calls this directly

Calls 1

close_connectionMethod · 0.95

Tested by

no test coverage detected