Merge "Update HTTPS certificate handling for pep-0476"

This commit is contained in:
Jenkins
2015-02-19 17:58:58 +00:00
committed by Gerrit Code Review
2 changed files with 7 additions and 1 deletions
+2
View File
@@ -109,8 +109,10 @@ class TestVerifiedHTTPSConnection(testtools.TestCase):
"""
cert_file = os.path.join(TEST_VAR_DIR, 'certificate.crt')
cacert = os.path.join(TEST_VAR_DIR, 'ca.crt')
key_file = os.path.join(TEST_VAR_DIR, 'badkey.key')
try:
https.VerifiedHTTPSConnection('127.0.0.1', 0,
key_file=key_file,
cert_file=cert_file,
cacert=cacert)
self.fail('Failed to raise assertion.')