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

Method test_compression_disabled

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

Source from the content-addressed store, hash-verified

4357 @unittest.skipUnless(hasattr(ssl, 'OP_NO_COMPRESSION'),
4358 "ssl.OP_NO_COMPRESSION needed for this test")
4359 def test_compression_disabled(self):
4360 client_context, server_context, hostname = testing_context()
4361 client_context.options |= ssl.OP_NO_COMPRESSION
4362 server_context.options |= ssl.OP_NO_COMPRESSION
4363 stats = server_params_test(client_context, server_context,
4364 chatty=True, connectionchatty=True,
4365 sni_name=hostname)
4366 self.assertIs(stats['compression'], None)
4367
4368 def test_legacy_server_connect(self):
4369 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