aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2018-01-13 00:43:07 +0100
committerMaximilian Hils <git@maximilianhils.com>2018-01-13 01:49:20 +0100
commitd9e3fcf5ef0c82cba8a28b31f45b01b6c549b203 (patch)
tree5acb1dea238100935ead56a221c8bac30d92cadd /test
parent96a5ed9dff60c245cc74c98e87caf37942cf0ee2 (diff)
downloadmitmproxy-d9e3fcf5ef0c82cba8a28b31f45b01b6c549b203.tar.gz
mitmproxy-d9e3fcf5ef0c82cba8a28b31f45b01b6c549b203.tar.bz2
mitmproxy-d9e3fcf5ef0c82cba8a28b31f45b01b6c549b203.zip
store ClientHello extensions with client connection
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/net/test_tls.py2
-rw-r--r--test/mitmproxy/proxy/test_server.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/test/mitmproxy/net/test_tls.py b/test/mitmproxy/net/test_tls.py
index c67b59cd..489bf89f 100644
--- a/test/mitmproxy/net/test_tls.py
+++ b/test/mitmproxy/net/test_tls.py
@@ -136,7 +136,7 @@ class TestClientHello:
(10, b'\x00\x06\x00\x1d\x00\x17\x00\x18')
]
- def test_from_conn(self):
+ def test_from_file(self):
rfile = io.BufferedReader(io.BytesIO(
FULL_CLIENT_HELLO_NO_EXTENSIONS
))
diff --git a/test/mitmproxy/proxy/test_server.py b/test/mitmproxy/proxy/test_server.py
index 56b7b4c9..8ec83d18 100644
--- a/test/mitmproxy/proxy/test_server.py
+++ b/test/mitmproxy/proxy/test_server.py
@@ -723,12 +723,13 @@ class TestProxy(tservers.HTTPProxyTest):
class TestProxySSL(tservers.HTTPProxyTest):
ssl = True
- def test_request_ssl_setup_timestamp_presence(self):
+ def test_request_tls_attribute_presence(self):
# tests that the ssl timestamp is present when ssl is used
f = self.pathod("304:b@10k")
assert f.status_code == 304
first_flow = self.master.state.flows[0]
assert first_flow.server_conn.timestamp_tls_setup
+ assert first_flow.client_conn.tls_extensions
def test_via(self):
# tests that the ssl timestamp is present when ssl is used