adds supported curves to context; fixes compatibility issues with py27

This commit is contained in:
Moisés Guimarães
2016-12-13 13:57:24 -03:00
parent 9b58ab0211
commit 1c9147a41e
4 changed files with 59 additions and 15 deletions

View File

@@ -136,7 +136,7 @@ class TestSSLContext(unittest.TestCase):
self.assertEqual(self.ctx.verify_mode, self.provider.CERT_REQUIRED)
def test_set_ciphers(self):
self.ctx.set_ciphers("DHE-RSA-AES256-SHA256:AES256-SHA256")
self.ctx.set_ciphers("DHE-RSA-AES256-SHA256")
def test_load_cert_chain_raises(self):
self.assertRaises(TypeError, self.ctx.load_cert_chain, None)