(self)
| 1364 | ctx.load_dh_params(CERTFILE) |
| 1365 | |
| 1366 | def test_session_stats(self): |
| 1367 | for proto in {ssl.PROTOCOL_TLS_CLIENT, ssl.PROTOCOL_TLS_SERVER}: |
| 1368 | ctx = ssl.SSLContext(proto) |
| 1369 | self.assertEqual(ctx.session_stats(), { |
| 1370 | 'number': 0, |
| 1371 | 'connect': 0, |
| 1372 | 'connect_good': 0, |
| 1373 | 'connect_renegotiate': 0, |
| 1374 | 'accept': 0, |
| 1375 | 'accept_good': 0, |
| 1376 | 'accept_renegotiate': 0, |
| 1377 | 'hits': 0, |
| 1378 | 'misses': 0, |
| 1379 | 'timeouts': 0, |
| 1380 | 'cache_full': 0, |
| 1381 | }) |
| 1382 | |
| 1383 | def test_set_default_verify_paths(self): |
| 1384 | # There's not much we can do to test that it acts as expected, |
nothing calls this directly
no test coverage detected