fixes unicode quotes and adds load_cert_chain test.

This commit is contained in:
Moisés Guimarães
2016-11-15 14:53:42 -03:00
parent 760ddd14f5
commit 015ffecbab
2 changed files with 10 additions and 6 deletions

View File

@@ -34,9 +34,13 @@ class TestSSLContext(unittest.TestCase):
def test_context_creation(self):
self.assertIsNotNone(self.ctx)
def test_load_cert_chain(self):
def test_load_cert_chain_raises(self):
self.assertRaises(TypeError, self.ctx.load_cert_chain, None)
def test_load_cert_chain(self):
self.ctx.load_cert_chain("../../../certs/client-cert.pem",
"../../../certs/client-key.pem")
def test_load_verify_locations_raises(self):
self.assertRaises(TypeError, self.ctx.load_verify_locations, None)