From 715e47e3d4cc16c95d572ccc871cc24417ee358a Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 9 Sep 2016 10:31:34 +1200 Subject: Extend addons.Addons with a get method that retrieves an addon by name --- test/mitmproxy/test_addons.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/mitmproxy/test_addons.py b/test/mitmproxy/test_addons.py index a5085ea0..f59f99d6 100644 --- a/test/mitmproxy/test_addons.py +++ b/test/mitmproxy/test_addons.py @@ -19,3 +19,6 @@ def test_simple(): a.add(o, TAddon("one")) assert a.has_addon("one") assert not a.has_addon("two") + + assert a.get("one") + assert not a.get("nonexistent") -- cgit v1.2.3