Lines Matching defs:ssl
10 import ssl
12 ssl = None
26 @unittest.skipIf(ssl is None, 'No ssl module')
48 sslobj.read.side_effect = ssl.SSLWantReadError
76 do_handshake=mock.Mock(side_effect=ssl.SSLWantReadError)
104 do_handshake=mock.Mock(side_effect=ssl.SSLWantReadError)
117 do_handshake=mock.Mock(side_effect=ssl.SSLWantReadError)
334 ssl=client_context)
629 ssl=client_sslctx,
670 ssl=client_sslctx,
698 except ssl.SSLError:
708 ssl=client_sslctx,
716 with self.assertRaises(ssl.SSLCertVerificationError):
734 except ssl.SSLError:
743 ssl=client_sslctx,
748 with self.assertRaises(ssl.SSLError):
763 @unittest.skipIf(ssl is None, 'No ssl module')
770 @unittest.skipIf(ssl is None, 'No ssl module')