addons.intercept: 100% test coverage

This commit is contained in:
Aldo Cortesi 2016-11-03 16:16:29 +13:00
parent 77e6dfe35c
commit 9fc6674151

View File

@ -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