diff options
author | Christian Heimes <christian@python.org> | 2016-09-24 10:48:16 +0200 |
---|---|---|
committer | Christian Heimes <christian@python.org> | 2016-09-24 10:48:16 +0200 |
commit | 7713ef432bca85f7ade94e4065957903a4beab8e (patch) | |
tree | a481c9f399048fad1ba8b2508df899af4b1d1a34 /Lib/test/test_ssl.py | |
parent | a59fa0bbe129913bd712ab178729d322a62e1061 (diff) | |
parent | a5d076599051f2ee06d71cc03613e9ca54f6fe76 (diff) | |
download | cpython-git-7713ef432bca85f7ade94e4065957903a4beab8e.tar.gz |
Finish GC code for SSLSession and increase test coverage
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r-- | Lib/test/test_ssl.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 631c8c187d..ad30105b0f 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -1474,6 +1474,7 @@ class SimpleBackgroundTests(unittest.TestCase): cert_reqs=ssl.CERT_NONE) as s: s.connect(self.server_addr) self.assertEqual({}, s.getpeercert()) + self.assertFalse(s.server_side) # this should succeed because we specify the root cert with test_wrap_socket(socket.socket(socket.AF_INET), @@ -1481,6 +1482,7 @@ class SimpleBackgroundTests(unittest.TestCase): ca_certs=SIGNING_CA) as s: s.connect(self.server_addr) self.assertTrue(s.getpeercert()) + self.assertFalse(s.server_side) def test_connect_fail(self): # This should fail because we have no verification certs. Connection @@ -3028,6 +3030,7 @@ if _have_threads: host = "127.0.0.1" port = support.bind_port(server) server = context.wrap_socket(server, server_side=True) + self.assertTrue(server.server_side) evt = threading.Event() remote = None |