Add tests for dump_dicts in optmanager.py.

This commit is contained in:
Matthew Shao 2017-06-12 20:27:21 +08:00
parent aabc78350a
commit 03bb0a09b9
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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__()