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