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

Method setUp

tests/sync/test_connection.py:33–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 REMOTE = SERVER
32
33 def setUp(self):
34 socket_, remote_socket = socket.socketpair()
35 protocol = Protocol(self.LOCAL)
36 remote_protocol = RecordingProtocol(self.REMOTE)
37 self.connection = Connection(socket_, protocol, close_timeout=2 * MS)
38 self.remote_connection = InterceptingConnection(remote_socket, remote_protocol)
39
40 def tearDown(self):
41 self.remote_connection.close()

Callers

nothing calls this directly

Calls 4

ProtocolClass · 0.90
RecordingProtocolClass · 0.85
ConnectionClass · 0.50

Tested by

no test coverage detected