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

Method test_compression_disabled

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

Source from the content-addressed store, hash-verified

4073 @unittest.skipUnless(hasattr(ssl, 'OP_NO_COMPRESSION'),
4074 "ssl.OP_NO_COMPRESSION needed for this test")
4075 def test_compression_disabled(self):
4076 client_context, server_context, hostname = testing_context()
4077 client_context.options |= ssl.OP_NO_COMPRESSION
4078 server_context.options |= ssl.OP_NO_COMPRESSION
4079 stats = server_params_test(client_context, server_context,
4080 chatty=True, connectionchatty=True,
4081 sni_name=hostname)
4082 self.assertIs(stats['compression'], None)
4083
4084 def test_legacy_server_connect(self):
4085 client_context, server_context, hostname = testing_context()

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