(self)
| 4346 | repr(new_cb_data).encode("us-ascii")) |
| 4347 | |
| 4348 | def test_compression(self): |
| 4349 | client_context, server_context, hostname = testing_context() |
| 4350 | stats = server_params_test(client_context, server_context, |
| 4351 | chatty=True, connectionchatty=True, |
| 4352 | sni_name=hostname) |
| 4353 | if support.verbose: |
| 4354 | sys.stdout.write(" got compression: {!r}\n".format(stats['compression'])) |
| 4355 | self.assertIn(stats['compression'], { None, 'ZLIB', 'RLE' }) |
| 4356 | |
| 4357 | @unittest.skipUnless(hasattr(ssl, 'OP_NO_COMPRESSION'), |
| 4358 | "ssl.OP_NO_COMPRESSION needed for this test") |
nothing calls this directly
no test coverage detected