Issue #10443: Add the SSLContext.set_default_verify_paths() method.

This commit is contained in:
Antoine Pitrou 2010-11-17 20:29:42 +00:00
parent b6d4ee5361
commit 664c2d1fc0
4 changed files with 29 additions and 0 deletions

View file

@ -412,6 +412,12 @@ class ContextTests(unittest.TestCase):
'cache_full': 0,
})
def test_set_default_verify_paths(self):
# There's not much we can do to test that it acts as expected,
# so just check it doesn't crash or raise an exception.
ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
ctx.set_default_verify_paths()
class NetworkedTests(unittest.TestCase):