Beispiel #1
0
 def test_set_cert_default_cert_required(self):
     conn = VerifiedHTTPSConnection(self.host, self.port)
     conn.set_cert()
     self.assertEqual(conn.cert_reqs, ssl.CERT_REQUIRED)
Beispiel #2
0
 def test_set_cert_default_cert_required(self):
     conn = VerifiedHTTPSConnection(self.host, self.port)
     conn.set_cert(ca_certs=DEFAULT_CA)
     self.assertEqual(conn.cert_reqs, 'CERT_REQUIRED')
Beispiel #3
0
 def test_set_cert_default_cert_required(self):
     conn = VerifiedHTTPSConnection(self.host, self.port)
     conn.set_cert(ca_certs='/etc/ssl/certs/custom.pem')
     self.assertEqual(conn.cert_reqs, 'CERT_REQUIRED')
def with_urllib3(domain):
    conn = VerifiedHTTPSConnection(domain)
    conn.set_cert(cert_reqs='CERT_REQUIRED')
    conn.connect()
Beispiel #5
0
 def test_set_cert_default_cert_required(self):
     conn = VerifiedHTTPSConnection(self.host, self.port)
     conn.set_cert()
     assert conn.cert_reqs == ssl.CERT_REQUIRED
Beispiel #6
0
 def test_set_cert_default_cert_required(self):
     conn = VerifiedHTTPSConnection(self.host, self.port)
     conn.set_cert(ca_certs=DEFAULT_CA)
     self.assertEqual(conn.cert_reqs, 'CERT_REQUIRED')
Beispiel #7
0
 def test_set_cert_default_cert_required(self):
     conn = VerifiedHTTPSConnection(self.host, self.port)
     conn.set_cert(ca_certs='/etc/ssl/certs/custom.pem')
     self.assertEqual(conn.cert_reqs, 'CERT_REQUIRED')