diff options
Diffstat (limited to 'test/test_tcp.py')
-rw-r--r-- | test/test_tcp.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/test_tcp.py b/test/test_tcp.py index 77146829..bf681811 100644 --- a/test/test_tcp.py +++ b/test/test_tcp.py @@ -1,5 +1,5 @@ import cStringIO, Queue, time, socket, random -from netlib import tcp, certutils, test +from netlib import tcp, certutils, test, certffi import mock import tutils from OpenSSL import SSL @@ -129,9 +129,6 @@ class TestServerSSL(test.ServerTestBase): c.wfile.flush() assert c.rfile.readline() == testval - def test_get_remote_cert(self): - assert certutils.get_remote_cert("127.0.0.1", self.port, None).digest("sha1") - def test_get_current_cipher(self): c = tcp.TCPClient(("127.0.0.1", self.port)) c.connect() @@ -419,7 +416,7 @@ class TestPrivkeyGenNoFlags(test.ServerTestBase): def test_privkey(self): c = tcp.TCPClient(("127.0.0.1", self.port)) c.connect() - tutils.raises("unexpected eof", c.convert_to_ssl) + tutils.raises("sslv3 alert handshake failure", c.convert_to_ssl) |