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

Method test_options

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

Source from the content-addressed store, hash-verified

340 self.assertEqual(ssl.PROTOCOL_TLS, ssl.PROTOCOL_SSLv23)
341
342 def test_options(self):
343 # gh-106687: SSL options values are unsigned integer (uint64_t)
344 for name in dir(ssl):
345 if not name.startswith('OP_'):
346 continue
347 with self.subTest(option=name):
348 value = getattr(ssl, name)
349 self.assertGreaterEqual(value, 0, f"ssl.{name}")
350
351 @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: TypeError not raised by Certificate
352 def test_ssl_types(self):

Callers

nothing calls this directly

Calls 5

dirFunction · 0.85
getattrFunction · 0.85
subTestMethod · 0.80
assertGreaterEqualMethod · 0.80
startswithMethod · 0.45

Tested by

no test coverage detected