diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-02-09 11:56:38 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-02-09 16:08:36 +0100 |
commit | 0299bb5b2e4870363ba0c402c6cf15722ca0ee0f (patch) | |
tree | f3f893401505dd57931497645e4015a2e0ec7aae /mitmproxy/test | |
parent | 5a3976c43e480b3926691e9f394b8200ca7613f0 (diff) | |
download | mitmproxy-0299bb5b2e4870363ba0c402c6cf15722ca0ee0f.tar.gz mitmproxy-0299bb5b2e4870363ba0c402c6cf15722ca0ee0f.tar.bz2 mitmproxy-0299bb5b2e4870363ba0c402c6cf15722ca0ee0f.zip |
eventsequence: coverage++
Diffstat (limited to 'mitmproxy/test')
-rw-r--r-- | mitmproxy/test/taddons.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mitmproxy/test/taddons.py b/mitmproxy/test/taddons.py index a25b6891..bb8daa02 100644 --- a/mitmproxy/test/taddons.py +++ b/mitmproxy/test/taddons.py @@ -3,7 +3,7 @@ import contextlib import mitmproxy.master import mitmproxy.options from mitmproxy import proxy -from mitmproxy import events +from mitmproxy import eventsequence from mitmproxy import exceptions @@ -57,7 +57,7 @@ class context: is taken (as in flow interception). """ f.reply._state = "handled" - for evt, arg in events.event_sequence(f): + for evt, arg in eventsequence.iterate(f): h = getattr(addon, evt, None) if h: h(arg) |