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

Method test_compression

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

Source from the content-addressed store, hash-verified

4062 repr(new_cb_data).encode("us-ascii"))
4063
4064 def test_compression(self):
4065 client_context, server_context, hostname = testing_context()
4066 stats = server_params_test(client_context, server_context,
4067 chatty=True, connectionchatty=True,
4068 sni_name=hostname)
4069 if support.verbose:
4070 sys.stdout.write(" got compression: {!r}\n".format(stats['compression']))
4071 self.assertIn(stats['compression'], { None, 'ZLIB', 'RLE' })
4072
4073 @unittest.skipUnless(hasattr(ssl, 'OP_NO_COMPRESSION'),
4074 "ssl.OP_NO_COMPRESSION needed for this test")

Callers

nothing calls this directly

Calls 5

testing_contextFunction · 0.85
server_params_testFunction · 0.85
assertInMethod · 0.80
writeMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected