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

Method main

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

Source from the content-addressed store, hash-verified

1000 self.on_con_lost.set_exception(exc)
1001
1002 async def main(proto, on_con, on_eof, on_con_lost):
1003 tr = await on_con
1004 tr.write(HELLO_MSG)
1005
1006 self.assertEqual(proto.data, b'')
1007
1008 new_tr = await self.loop.start_tls(
1009 tr, proto, server_context,
1010 server_side=True,
1011 ssl_handshake_timeout=self.TIMEOUT)
1012
1013 await on_eof
1014 await on_con_lost
1015 self.assertEqual(proto.data, HELLO_MSG)
1016 new_tr.close()
1017
1018 async def run_main():
1019 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