From 03bb0a09b95d1942a62435545d867b0888de75fa Mon Sep 17 00:00:00 2001 From: Matthew Shao Date: Mon, 12 Jun 2017 20:27:21 +0800 Subject: [PATCH] Add tests for dump_dicts in optmanager.py. --- mitmproxy/tools/web/app.py | 1 - test/mitmproxy/test_optmanager.py | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mitmproxy/tools/web/app.py b/mitmproxy/tools/web/app.py index b512671cf..ae542dc5d 100644 --- a/mitmproxy/tools/web/app.py +++ b/mitmproxy/tools/web/app.py @@ -17,7 +17,6 @@ from mitmproxy import http from mitmproxy import io from mitmproxy import log from mitmproxy import version -from mitmproxy import options from mitmproxy import optmanager import mitmproxy.tools.web.master # noqa diff --git a/test/mitmproxy/test_optmanager.py b/test/mitmproxy/test_optmanager.py index 04ec7ded8..37fe0e3a1 100644 --- a/test/mitmproxy/test_optmanager.py +++ b/test/mitmproxy/test_optmanager.py @@ -334,6 +334,11 @@ def test_dump_defaults(): assert optmanager.dump_defaults(o) +def test_dump_dicts(): + o = options.Options() + assert optmanager.dump_dicts(o) + + class TTypes(optmanager.OptManager): def __init__(self): super().__init__()