MCPcopy
hub / github.com/python-trio/trio / check

Method check

src/trio/_tests/test_highlevel_open_tcp_stream.py:332–341  ·  view source on GitHub ↗
(self, succeeded: SocketType | None)

Source from the content-addressed store, hash-verified

330 raise NotImplementedError
331
332 def check(self, succeeded: SocketType | None) -> None:
333 # sockets only go into self.sockets when connect is called; make sure
334 # all the sockets that were created did in fact go in there.
335 assert self.socket_count == len(self.sockets)
336
337 for ip, socket_ in self.sockets.items():
338 assert ip in self.ip_dict
339 if socket_ is not succeeded:
340 assert socket_.closed
341 assert socket_.port == self.port
342
343
344async def run_scenario(

Callers 3

run_scenarioFunction · 0.95
test_cancelFunction · 0.80
_check_checkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected