aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_console.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-03-13 11:24:49 +1300
committerAldo Cortesi <aldo@nullcube.com>2011-03-13 11:24:49 +1300
commitc901cbbadada76adca83daa800d65919f44d912f (patch)
tree2a1c391a691598404a9980b85e83f9bf2052634d /test/test_console.py
parent9a9a2d9125e6b1fbbfff0020ad0f29df74249f44 (diff)
downloadmitmproxy-c901cbbadada76adca83daa800d65919f44d912f.tar.gz
mitmproxy-c901cbbadada76adca83daa800d65919f44d912f.tar.bz2
mitmproxy-c901cbbadada76adca83daa800d65919f44d912f.zip
mitmproxy prompted input now display previously set value.
E.g. if you set a limit, then re-enter the limit prompt, you start with the currently set value.
Diffstat (limited to 'test/test_console.py')
-rw-r--r--test/test_console.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_console.py b/test/test_console.py
index 034f8ea1..ffcb31f7 100644
--- a/test/test_console.py
+++ b/test/test_console.py
@@ -69,7 +69,7 @@ class uState(libpry.AutoTree):
self._add_response(c)
self._add_request(c)
self._add_response(c)
- c.set_limit(filt.parse("~q"))
+ assert not c.set_limit("~q")
assert len(c.view) == 3
assert c.focus == 2
@@ -158,7 +158,7 @@ class uPathCompleter(libpry.AutoTree):
class uOptions(libpry.AutoTree):
def test_all(self):
- assert console.Options(beep=True)
+ assert console.Options(kill=True)