From 9fc6674151a377c467369f3989800c5ab910edb8 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 3 Nov 2016 16:16:29 +1300 Subject: [PATCH] addons.intercept: 100% test coverage --- test/mitmproxy/addons/test_intercept.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/mitmproxy/addons/test_intercept.py b/test/mitmproxy/addons/test_intercept.py index efdac3744..5178cb972 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