mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-03-26 08:54:48 +08:00
addons.intercept: 100% test coverage
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user