(self)
| 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") |
nothing calls this directly
no test coverage detected