aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMiroslav <ttahabatt@gmail.com>2018-02-08 20:11:14 +0200
committerMiroslav <ttahabatt@gmail.com>2018-02-08 20:11:14 +0200
commit9f78c36ec447913dde9a0acd69683e856a843db4 (patch)
tree94688f62c5d2858951c2df57cf3f3a234aee4841 /test
parent0cb38f6329d1735aee9fe034499a8c1497172f9f (diff)
downloadmitmproxy-9f78c36ec447913dde9a0acd69683e856a843db4.tar.gz
mitmproxy-9f78c36ec447913dde9a0acd69683e856a843db4.tar.bz2
mitmproxy-9f78c36ec447913dde9a0acd69683e856a843db4.zip
New command
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/tools/console/test_commander.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/test/mitmproxy/tools/console/test_commander.py b/test/mitmproxy/tools/console/test_commander.py
index cc2f3f35..2a96995d 100644
--- a/test/mitmproxy/tools/console/test_commander.py
+++ b/test/mitmproxy/tools/console/test_commander.py
@@ -1,4 +1,4 @@
-from mitmproxy import options
+
from mitmproxy.tools.console.commander import commander
from mitmproxy.test import taddons
@@ -96,11 +96,3 @@ class TestCommandBuffer:
with taddons.context() as tctx:
cb = commander.CommandBuffer(tctx.master)
assert cb.flatten("foo bar") == "foo bar"
-
- def test_get_option_value(self):
- opts = options.Options(view_filter="value")
- with taddons.context(options=opts) as tctx:
- cb = commander.CommandBuffer(tctx.master)
- assert cb.get_option_value("set unknown_option=") == ""
- assert cb.get_option_value("set intercept=") == ""
- assert cb.get_option_value("set view_filter=") == "value"