libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From quent...@apache.org
Subject [2/4] libcloud git commit: Cleanup test_http.py
Date Fri, 06 Oct 2017 19:34:48 GMT
Cleanup test_http.py


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/6333ca7b
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/6333ca7b
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/6333ca7b

Branch: refs/heads/trunk
Commit: 6333ca7be6591ea2855a51fed5aa91a2bcbd7e9c
Parents: fa074d1
Author: Quentin Pradet <quentinp@apache.org>
Authored: Tue Oct 3 09:23:38 2017 +0400
Committer: Quentin Pradet <quentinp@apache.org>
Committed: Fri Oct 6 23:28:20 2017 +0400

----------------------------------------------------------------------
 libcloud/test/test_http.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/6333ca7b/libcloud/test/test_http.py
----------------------------------------------------------------------
diff --git a/libcloud/test/test_http.py b/libcloud/test/test_http.py
index 4da6454..dbe742c 100644
--- a/libcloud/test/test_http.py
+++ b/libcloud/test/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()


Mime
View raw message