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

Method main

Lib/test/test_asyncio/test_ssl.py:1006–1020  ·  view source on GitHub ↗
(proto, on_con, on_eof, on_con_lost)

Source from the content-addressed store, hash-verified

1004 self.on_con_lost.set_exception(exc)
1005
1006 async def main(proto, on_con, on_eof, on_con_lost):
1007 tr = await on_con
1008 tr.write(HELLO_MSG)
1009
1010 self.assertEqual(proto.data, b'')
1011
1012 new_tr = await self.loop.start_tls(
1013 tr, proto, server_context,
1014 server_side=True,
1015 ssl_handshake_timeout=self.TIMEOUT)
1016
1017 await on_eof
1018 await on_con_lost
1019 self.assertEqual(proto.data, HELLO_MSG)
1020 new_tr.close()
1021
1022 async def run_main():
1023 on_con = self.loop.create_future()

Callers 15

__init__.pyFile · 0.45
test_inversion.pyFile · 0.45
__main__.pyFile · 0.45
test_email.pyFile · 0.45
test_generator.pyFile · 0.45
test_parser.pyFile · 0.45
test_pickleable.pyFile · 0.45
test_policy.pyFile · 0.45
torture_test.pyFile · 0.45

Calls 4

writeMethod · 0.45
assertEqualMethod · 0.45
start_tlsMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected