aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2017-07-30 02:04:36 +0200
committerGitHub <noreply@github.com>2017-07-30 02:04:36 +0200
commitecc01b0f02b60cfce00f36057a78354780278aca (patch)
tree73ec14ef68e8c8bb3a3221c00e0c8c8ec88f3e66 /test
parent3bd675daa42451a1bb84bee32fa3b6827899931c (diff)
parentd5c9f131217e0be2f323e4d47c767641924e5002 (diff)
downloadmitmproxy-ecc01b0f02b60cfce00f36057a78354780278aca.tar.gz
mitmproxy-ecc01b0f02b60cfce00f36057a78354780278aca.tar.bz2
mitmproxy-ecc01b0f02b60cfce00f36057a78354780278aca.zip
Merge pull request #2483 from mhils/ignore-imports-with-hook-names
Gracefully ignore imports with hook names
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/test_addonmanager.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/mitmproxy/test_addonmanager.py b/test/mitmproxy/test_addonmanager.py
index 678bc1b7..5bff61d1 100644
--- a/test/mitmproxy/test_addonmanager.py
+++ b/test/mitmproxy/test_addonmanager.py
@@ -117,6 +117,11 @@ def test_simple():
a.trigger("tick")
tctx.master.has_log("not callable")
+ tctx.master.clear()
+ a.get("one").tick = addons
+ a.trigger("tick")
+ assert not tctx.master.has_log("not callable")
+
a.remove(a.get("one"))
assert not a.get("one")