aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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