aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_tcp.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-06-28 09:57:33 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-06-28 09:57:33 +1200
commitbae86480d49eac9d776872bdcf92c0c42aaff24f (patch)
tree9c1464e91de790696336158e1d48d6707d229305 /test/test_tcp.py
parent92c7d38bd343a0436d73c0a984fe111996e15059 (diff)
parenta1491a6ae037b7874dd71de11f5cd43e10aa46e7 (diff)
downloadmitmproxy-bae86480d49eac9d776872bdcf92c0c42aaff24f.tar.gz
mitmproxy-bae86480d49eac9d776872bdcf92c0c42aaff24f.tar.bz2
mitmproxy-bae86480d49eac9d776872bdcf92c0c42aaff24f.zip
Merge branch 'master' of github.com:cortesi/netlib
Diffstat (limited to 'test/test_tcp.py')
-rw-r--r--test/test_tcp.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_tcp.py b/test/test_tcp.py
index a2ee5e36..969daf1e 100644
--- a/test/test_tcp.py
+++ b/test/test_tcp.py
@@ -1,5 +1,5 @@
import cStringIO, threading, Queue
-from netlib import tcp
+from netlib import tcp, certutils
import tutils
class ServerThread(threading.Thread):
@@ -110,6 +110,9 @@ class TestServerSSL(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")
+
class TestSNI(ServerTestBase):
@classmethod