From d5c9f131217e0be2f323e4d47c767641924e5002 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sat, 29 Jul 2017 21:47:27 +0200 Subject: gracefully ignore imports with hook names --- test/mitmproxy/test_addonmanager.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') 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") -- cgit v1.2.3