MCPcopy Index your code
hub / github.com/python/cpython / _assert_state

Method _assert_state

Lib/test/test_asyncio/test_events.py:228–230  ·  view source on GitHub ↗
(self, expected)

Source from the content-addressed store, hash-verified

226 2: asyncio.Event()}
227
228 def _assert_state(self, expected):
229 if self.state != expected:
230 raise AssertionError(f'state: {self.state!r}, expected: {expected!r}')
231
232 def connection_made(self, transport):
233 self.transport = transport

Callers 5

connection_madeMethod · 0.95
connection_lostMethod · 0.95
pipe_data_receivedMethod · 0.95
pipe_connection_lostMethod · 0.95
process_exitedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected