(self)
| 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) |
nothing calls this directly
no test coverage detected