(self)
| 4073 | @unittest.skipUnless(hasattr(ssl, 'OP_NO_COMPRESSION'), |
| 4074 | "ssl.OP_NO_COMPRESSION needed for this test") |
| 4075 | def test_compression_disabled(self): |
| 4076 | client_context, server_context, hostname = testing_context() |
| 4077 | client_context.options |= ssl.OP_NO_COMPRESSION |
| 4078 | server_context.options |= ssl.OP_NO_COMPRESSION |
| 4079 | stats = server_params_test(client_context, server_context, |
| 4080 | chatty=True, connectionchatty=True, |
| 4081 | sni_name=hostname) |
| 4082 | self.assertIs(stats['compression'], None) |
| 4083 | |
| 4084 | def test_legacy_server_connect(self): |
| 4085 | client_context, server_context, hostname = testing_context() |
nothing calls this directly
no test coverage detected