Cleanup test_http.py
@@ -25,14 +25,14 @@ from libcloud.http import LibcloudConnection
from libcloud.test import unittest
-ORIGINAL_CA_CERS_PATH = libcloud.security.CA_CERTS_PATH
+ORIGINAL_CA_CERTS_PATH = libcloud.security.CA_CERTS_PATH
class TestHttpLibSSLTests(unittest.TestCase):
def setUp(self):
libcloud.security.VERIFY_SSL_CERT = False
- libcloud.security.CA_CERTS_PATH = ORIGINAL_CA_CERS_PATH
+ libcloud.security.CA_CERTS_PATH = ORIGINAL_CA_CERTS_PATH
self.httplib_object = LibcloudConnection('foo.bar', port=80)
def test_custom_ca_path_using_env_var_doesnt_exist(self):
@@ -66,8 +66,7 @@ class TestHttpLibSSLTests(unittest.TestCase):
self.assertEqual(libcloud.security.CA_CERTS_PATH, file_path)
- @patch('warnings.warn')
- def test_setup_ca_cert(self, _):
+ def test_setup_ca_cert(self):
# verify = False, _setup_ca_cert should be a no-op
self.httplib_object.verify = False
self.httplib_object._setup_ca_cert()
