diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-12-13 14:09:06 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-12-13 14:23:21 +0100 |
commit | 44f94c884481c768991a4817bb4772d0c3e59bef (patch) | |
tree | fec7aa87bc7cbbf4750f873402f4a4bcebea159e /test | |
parent | b39380b00fe324a67c107ac2c4a611cbd71b7839 (diff) | |
download | mitmproxy-44f94c884481c768991a4817bb4772d0c3e59bef.tar.gz mitmproxy-44f94c884481c768991a4817bb4772d0c3e59bef.tar.bz2 mitmproxy-44f94c884481c768991a4817bb4772d0c3e59bef.zip |
use types.SimpleNamespace instead of custom NS class
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/addons/test_script.py | 7 | ||||
-rw-r--r-- | test/mitmproxy/test_examples.py | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/test/mitmproxy/addons/test_script.py b/test/mitmproxy/addons/test_script.py index 06463fa3..777f8f4d 100644 --- a/test/mitmproxy/addons/test_script.py +++ b/test/mitmproxy/addons/test_script.py @@ -18,13 +18,6 @@ import watchdog.events from .. import tutils as ttutils -def test_ns(): - n = script.NS({}) - n.one = "one" - assert n.one == "one" - assert n.__dict__["ns"]["one"] == "one" - - def test_scriptenv(): with taddons.context() as tctx: with script.scriptenv("path", []): diff --git a/test/mitmproxy/test_examples.py b/test/mitmproxy/test_examples.py index 8db2507f..610c9dad 100644 --- a/test/mitmproxy/test_examples.py +++ b/test/mitmproxy/test_examples.py @@ -150,7 +150,7 @@ class TestHARDump: def test_format_cookies(self): m, sc = tscript("complex/har_dump.py", "-") - format_cookies = sc.ns.ns["format_cookies"] + format_cookies = sc.ns.format_cookies CA = cookies.CookieAttrs |