예제 #1
0
class CertificateConnectionClassTestCase(unittest.TestCase):
    def setUp(self):
        self.connection = CertificateConnection(cert_file='test.pem',
                                                url='https://test.com/test')
        self.connection.connect()

    def test_adapter_internals(self):
        adapter = self.connection.connection.session.adapters['https://']
        self.assertTrue(isinstance(adapter, SignedHTTPSAdapter))
        self.assertEqual(adapter.cert_file, 'test.pem')
예제 #2
0
 def setUp(self):
     self.connection = CertificateConnection(cert_file='test.pem',
                                             url='https://test.com/test')
     self.connection.connect()
예제 #3
0
 def setUp(self):
     self.connection = CertificateConnection(cert_file="test.pem",
                                             url="https://test.com/test")
     self.connection.connect()