MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_session_stats

Method test_session_stats

Lib/test/test_ssl.py:1366–1381  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
session_statsMethod · 0.45

Tested by

no test coverage detected