diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-03-13 11:24:49 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-03-13 11:24:49 +1300 |
commit | c901cbbadada76adca83daa800d65919f44d912f (patch) | |
tree | 2a1c391a691598404a9980b85e83f9bf2052634d /test | |
parent | 9a9a2d9125e6b1fbbfff0020ad0f29df74249f44 (diff) | |
download | mitmproxy-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')
-rw-r--r-- | test/test_console.py | 4 | ||||
-rw-r--r-- | test/test_flow.py | 6 |
2 files changed, 5 insertions, 5 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) 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): |