MCPcopy Index your code
hub / github.com/RustPython/RustPython / inner

Method inner

Lib/test/test_asyncio/test_streams.py:1021–1030  ·  view source on GitHub ↗
(httpd)

Source from the content-addressed store, hash-verified

1019
1020 def test_async_writer_api(self):
1021 async def inner(httpd):
1022 rd, wr = await asyncio.open_connection(*httpd.address)
1023
1024 wr.write(b'GET / HTTP/1.0\r\n\r\n')
1025 data = await rd.readline()
1026 self.assertEqual(data, b'HTTP/1.0 200 OK\r\n')
1027 data = await rd.read()
1028 self.assertEndsWith(data, b'\r\n\r\nTest message')
1029 wr.close()
1030 await wr.wait_closed()
1031
1032 messages = []
1033 self.loop.set_exception_handler(lambda loop, ctx: messages.append(ctx))

Callers 3

test_filenameMethod · 0.45
test_stacklevelMethod · 0.45

Calls 15

lenFunction · 0.85
strFunction · 0.85
assertWarnsMethod · 0.80
collectMethod · 0.80
writeMethod · 0.45
readlineMethod · 0.45
assertEqualMethod · 0.45
readMethod · 0.45
assertEndsWithMethod · 0.45
closeMethod · 0.45
wait_closedMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected