aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_server.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2013-03-02 14:52:05 +1300
committerAldo Cortesi <aldo@nullcube.com>2013-03-02 14:52:05 +1300
commit10db82e9a030235ab884e70d1809ad6d673c2d13 (patch)
treeb90502ad2a383bef6a833a9562c38296d236be1e /test/test_server.py
parentba674ad5514c5f30315fc688a07fdac634d94dfc (diff)
downloadmitmproxy-10db82e9a030235ab884e70d1809ad6d673c2d13.tar.gz
mitmproxy-10db82e9a030235ab884e70d1809ad6d673c2d13.tar.bz2
mitmproxy-10db82e9a030235ab884e70d1809ad6d673c2d13.zip
Test SNI for ordinary proxy connections.
Diffstat (limited to 'test/test_server.py')
-rw-r--r--test/test_server.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_server.py b/test/test_server.py
index 466c0f94..244f972f 100644
--- a/test/test_server.py
+++ b/test/test_server.py
@@ -131,10 +131,14 @@ class TestHTTPS(tservers.HTTPProxTest, CommonMixin):
clientcerts = True
def test_clientcert(self):
f = self.pathod("304")
+ assert f.status_code == 304
assert self.server.last_log()["request"]["clientcert"]["keyinfo"]
def test_sni(self):
- pass
+ f = self.pathod("304", sni="testserver.com")
+ assert f.status_code == 304
+ l = self.server.last_log()
+ assert self.server.last_log()["request"]["sni"] == "testserver.com"
class TestHTTPSCertfile(tservers.HTTPProxTest, CommonMixin):