aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2017-03-07 13:16:28 +1300
committerAldo Cortesi <aldo@nullcube.com>2017-03-07 13:16:28 +1300
commit99a6b0dbc1cc68bbcdbae1060a6f75ff4f0e9bf8 (patch)
tree078444dd0217ef17502e26b0c0af6d6bd4b05df3 /test
parentd13df40753a3e8259ef4d2f25d9cb0c1e8141223 (diff)
downloadmitmproxy-99a6b0dbc1cc68bbcdbae1060a6f75ff4f0e9bf8.tar.gz
mitmproxy-99a6b0dbc1cc68bbcdbae1060a6f75ff4f0e9bf8.tar.bz2
mitmproxy-99a6b0dbc1cc68bbcdbae1060a6f75ff4f0e9bf8.zip
Add --options that dumps annotated option defaults
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/test_optmanager.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/mitmproxy/test_optmanager.py b/test/mitmproxy/test_optmanager.py
index a38662d5..6729b155 100644
--- a/test/mitmproxy/test_optmanager.py
+++ b/test/mitmproxy/test_optmanager.py
@@ -280,3 +280,8 @@ def test_option():
assert o2 == o
o2.set(5)
assert o2 != o
+
+
+def test_dump():
+ o = options.Options()
+ assert optmanager.dump(o) \ No newline at end of file