diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2016-09-09 10:31:34 +1200 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2016-09-09 10:31:34 +1200 |
| commit | 715e47e3d4cc16c95d572ccc871cc24417ee358a (patch) | |
| tree | 0321b07f33c8c1a5eba5f11c4128281a9cd5abbd /test | |
| parent | d4f291a8adfc6bfe7cd7820d9342868874895ad0 (diff) | |
| download | mitmproxy-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.py | 3 |
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") |
