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

Method test_selected_alpn_protocol

Lib/test/test_ssl.py:4155–4161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4153 sni_name=hostname)
4154
4155 def test_selected_alpn_protocol(self):
4156 # selected_alpn_protocol() is None unless ALPN is used.
4157 client_context, server_context, hostname = testing_context()
4158 stats = server_params_test(client_context, server_context,
4159 chatty=True, connectionchatty=True,
4160 sni_name=hostname)
4161 self.assertIs(stats['client_alpn_protocol'], None)
4162
4163 def test_selected_alpn_protocol_if_server_uses_alpn(self):
4164 # selected_alpn_protocol() is None unless ALPN is used by the client.

Callers

nothing calls this directly

Calls 3

testing_contextFunction · 0.85
server_params_testFunction · 0.85
assertIsMethod · 0.45

Tested by

no test coverage detected