aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-11-03 16:16:29 +1300
committerAldo Cortesi <aldo@nullcube.com>2016-11-03 16:16:29 +1300
commit9fc6674151a377c467369f3989800c5ab910edb8 (patch)
treead32083d449e541bb726fba4347d4d0542fc9ec8 /test
parent77e6dfe35ce26b91a289490abad41b903d102ba1 (diff)
downloadmitmproxy-9fc6674151a377c467369f3989800c5ab910edb8.tar.gz
mitmproxy-9fc6674151a377c467369f3989800c5ab910edb8.tar.bz2
mitmproxy-9fc6674151a377c467369f3989800c5ab910edb8.zip
addons.intercept: 100% test coverage
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/addons/test_intercept.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/mitmproxy/addons/test_intercept.py b/test/mitmproxy/addons/test_intercept.py
index efdac374..5178cb97 100644
--- a/test/mitmproxy/addons/test_intercept.py
+++ b/test/mitmproxy/addons/test_intercept.py
@@ -36,3 +36,8 @@ def test_simple():
f = tflow.tflow(resp=False)
tctx.cycle(r, f)
assert not f.intercepted
+
+ f = tflow.tflow(resp=True)
+ f.reply._state = "handled"
+ r.response(f)
+ assert f.intercepted \ No newline at end of file