diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-12-03 12:16:50 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-12-08 10:21:06 +1300 |
commit | c94cd512d108fd9a12c87015791ce977b895fa2d (patch) | |
tree | 608fbf951613b6920974431692a574b3bd1cf995 /test | |
parent | 3594faf5c42bfe4d422b16e4ceedb482802c95ce (diff) | |
download | mitmproxy-c94cd512d108fd9a12c87015791ce977b895fa2d.tar.gz mitmproxy-c94cd512d108fd9a12c87015791ce977b895fa2d.tar.bz2 mitmproxy-c94cd512d108fd9a12c87015791ce977b895fa2d.zip |
options: defaults are a class attribute
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/test_optmanager.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/mitmproxy/test_optmanager.py b/test/mitmproxy/test_optmanager.py index c7808391..385cf621 100644 --- a/test/mitmproxy/test_optmanager.py +++ b/test/mitmproxy/test_optmanager.py @@ -28,6 +28,11 @@ class TD2(TD): def test_defaults(): + assert TD2.default("one") == "done" + assert TD2.default("two") == "dtwo" + assert TD2.default("three") == "dthree" + assert TD2.default("four") == "dfour" + o = TD2() assert o._defaults == { "one": "done", |