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 | 150372e29728459b93f0fb46028ced9c2afe1d15 (patch) | |
tree | 1b5576202801d4f23929085081f6209ccba3259d /test | |
parent | 2cb1f7038196d31ecdd4190c009dc63a1f6d0538 (diff) | |
download | mitmproxy-150372e29728459b93f0fb46028ced9c2afe1d15.tar.gz mitmproxy-150372e29728459b93f0fb46028ced9c2afe1d15.tar.bz2 mitmproxy-150372e29728459b93f0fb46028ced9c2afe1d15.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 97124368..0c98daea 100644 --- a/test/mitmproxy/test_optmanager.py +++ b/test/mitmproxy/test_optmanager.py @@ -30,6 +30,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", |