aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJessica Favin <j.favin@hotmail.fr>2018-11-04 16:06:17 +0100
committerJessica Favin <j.favin@hotmail.fr>2018-11-04 16:06:17 +0100
commitade136dc4dd73b760b3ed116d5e4946753b67847 (patch)
treeab8e06ab22ee5e9022759798eef4e340aa36521b /test
parent2e9a34faa9fc8b0123375f220d785ebf2a10e716 (diff)
downloadmitmproxy-ade136dc4dd73b760b3ed116d5e4946753b67847.tar.gz
mitmproxy-ade136dc4dd73b760b3ed116d5e4946753b67847.tar.bz2
mitmproxy-ade136dc4dd73b760b3ed116d5e4946753b67847.zip
Update test_dumper.py
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/addons/test_dumper.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/mitmproxy/addons/test_dumper.py b/test/mitmproxy/addons/test_dumper.py
index c24801e4..62dbd017 100644
--- a/test/mitmproxy/addons/test_dumper.py
+++ b/test/mitmproxy/addons/test_dumper.py
@@ -155,6 +155,7 @@ class TestContentView:
def test_tcp():
sio = io.StringIO()
+ sio_err = io.StringIO()
d = dumper.Dumper(sio)
with taddons.context(d) as ctx:
ctx.configure(d, flow_detail=3, showhost=True)
@@ -165,11 +166,12 @@ def test_tcp():
f = tflow.ttcpflow(client_conn=True, err=True)
d.tcp_error(f)
- assert "Error in TCP" in sio.getvalue()
+ assert "Error in TCP" in sio_err.getvalue()
def test_websocket():
sio = io.StringIO()
+ sio_err = io.StringIO()
d = dumper.Dumper(sio)
with taddons.context(d) as ctx:
ctx.configure(d, flow_detail=3, showhost=True)
@@ -183,4 +185,4 @@ def test_websocket():
f = tflow.twebsocketflow(client_conn=True, err=True)
d.websocket_error(f)
- assert "Error in WebSocket" in sio.getvalue()
+ assert "Error in WebSocket" in sio_err.getvalue()