Update test_flowlist.py

This commit is contained in:
lymanZerga11 2017-02-12 23:36:26 +08:00 committed by GitHub
parent df8a5aa9be
commit f5b30b8872

View File

@ -2,7 +2,7 @@ import mitmproxy.tools.console.flowlist as flowlist
from mitmproxy.tools import console from mitmproxy.tools import console
from mitmproxy import proxy from mitmproxy import proxy
from mitmproxy import options from mitmproxy import options
from .. import mastertest from .. import tservers
import pytest import pytest
from unittest import mock from unittest import mock
@ -15,7 +15,7 @@ def mock_add_log(message):
raise ScriptError(message) raise ScriptError(message)
class TestFlowlist(mastertest.MasterTest): class TestFlowlist(tservers.MasterTest):
def mkmaster(self, **opts): def mkmaster(self, **opts):
if "verbosity" not in opts: if "verbosity" not in opts:
opts["verbosity"] = 1 opts["verbosity"] = 1