aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-09-09 10:31:34 +1200
committerAldo Cortesi <aldo@nullcube.com>2016-09-09 10:31:34 +1200
commit715e47e3d4cc16c95d572ccc871cc24417ee358a (patch)
tree0321b07f33c8c1a5eba5f11c4128281a9cd5abbd /test
parentd4f291a8adfc6bfe7cd7820d9342868874895ad0 (diff)
downloadmitmproxy-715e47e3d4cc16c95d572ccc871cc24417ee358a.tar.gz
mitmproxy-715e47e3d4cc16c95d572ccc871cc24417ee358a.tar.bz2
mitmproxy-715e47e3d4cc16c95d572ccc871cc24417ee358a.zip
Extend addons.Addons with a get method that retrieves an addon by name
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/test_addons.py3
1 files changed, 3 insertions, 0 deletions
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")