diff options
| author | Maximilian Hils <git@maximilianhils.com> | 2017-07-29 21:47:27 +0200 |
|---|---|---|
| committer | Maximilian Hils <git@maximilianhils.com> | 2017-07-29 21:47:27 +0200 |
| commit | d5c9f131217e0be2f323e4d47c767641924e5002 (patch) | |
| tree | d31f3387a5b200a3d0a806a090e18dd248552341 /test | |
| parent | 9ffd42edeacb19c3961840289bb25eaeca5991a5 (diff) | |
| download | mitmproxy-d5c9f131217e0be2f323e4d47c767641924e5002.tar.gz mitmproxy-d5c9f131217e0be2f323e4d47c767641924e5002.tar.bz2 mitmproxy-d5c9f131217e0be2f323e4d47c767641924e5002.zip | |
gracefully ignore imports with hook names
Diffstat (limited to 'test')
| -rw-r--r-- | test/mitmproxy/test_addonmanager.py | 5 |
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") |
