aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_flow.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_flow.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_flow.py')
-rw-r--r--test/test_flow.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_flow.py b/test/test_flow.py
index d2cb85dc..f29e1e80 100644
--- a/test/test_flow.py
+++ b/test/test_flow.py
@@ -275,7 +275,7 @@ class uState(libpry.AutoTree):
f = c.add_request(req)
assert len(c.view) == 1
- c.set_limit(filt.parse("~s"))
+ c.set_limit("~s")
assert len(c.view) == 0
resp = tutils.tresp(req)
c.add_response(resp)
@@ -287,9 +287,9 @@ class uState(libpry.AutoTree):
c.clientconnect(req.client_conn)
c.add_request(req)
assert len(c.view) == 2
- c.set_limit(filt.parse("~q"))
+ c.set_limit("~q")
assert len(c.view) == 1
- c.set_limit(filt.parse("~s"))
+ c.set_limit("~s")
assert len(c.view) == 1
def _add_request(self, state):