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

Method test_ciphers

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

Source from the content-addressed store, hash-verified

925 self.assertRaises(ValueError, ssl.SSLContext, 42)
926
927 def test_ciphers(self):
928 ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
929 ctx.set_ciphers("ALL")
930 ctx.set_ciphers("DEFAULT")
931 with self.assertRaisesRegex(ssl.SSLError, "No cipher can be selected"):
932 ctx.set_ciphers("^$:,;?*'dorothyx")
933
934 @unittest.skipUnless(PY_SSL_DEFAULT_CIPHERS == 1,
935 "Test applies only to Python default ciphers")

Callers

nothing calls this directly

Calls 2

assertRaisesRegexMethod · 0.80
set_ciphersMethod · 0.45

Tested by

no test coverage detected