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

Method test_python_ciphers

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

Source from the content-addressed store, hash-verified

934 @unittest.skipUnless(PY_SSL_DEFAULT_CIPHERS == 1,
935 "Test applies only to Python default ciphers")
936 def test_python_ciphers(self):
937 ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
938 ciphers = ctx.get_ciphers()
939 for suite in ciphers:
940 name = suite['name']
941 self.assertNotIn("PSK", name)
942 self.assertNotIn("SRP", name)
943 self.assertNotIn("MD5", name)
944 self.assertNotIn("RC4", name)
945 self.assertNotIn("3DES", name)
946
947 def test_get_ciphers(self):
948 ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)

Callers

nothing calls this directly

Calls 2

assertNotInMethod · 0.80
get_ciphersMethod · 0.45

Tested by

no test coverage detected