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')
def setUp(self): self.connection = CertificateConnection(cert_file='test.pem', url='https://test.com/test') self.connection.connect()
def setUp(self): self.connection = CertificateConnection(cert_file="test.pem", url="https://test.com/test") self.connection.connect()