diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-02-24 13:03:24 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-02-24 13:03:24 +1300 |
commit | 25fa596cd6aa6468d1a7dd5d8c2fc5bfc7cef004 (patch) | |
tree | 084ae29e13bfa8faec401a5059a6967a64833597 /test | |
parent | ddc9155c243f9ccb463a84f259837ef79d607d66 (diff) | |
download | mitmproxy-25fa596cd6aa6468d1a7dd5d8c2fc5bfc7cef004.tar.gz mitmproxy-25fa596cd6aa6468d1a7dd5d8c2fc5bfc7cef004.tar.bz2 mitmproxy-25fa596cd6aa6468d1a7dd5d8c2fc5bfc7cef004.zip |
Fix detection of URL-encoded forms.
Thanks to Paul Capestany <capestany@gmail.com> for reporting this.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_flow.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/test_flow.py b/test/test_flow.py index 52e6781f..ffcb6e25 100644 --- a/test/test_flow.py +++ b/test/test_flow.py @@ -345,7 +345,7 @@ class uState(libpry.AutoTree): c.add_request(req) assert len(c.view) == 2 c.set_limit("~q") - assert len(c.view) == 2 + assert len(c.view) == 1 c.set_limit("~s") assert len(c.view) == 1 @@ -931,6 +931,15 @@ class uODict(libpry.AutoTree): nd = flow.ODict._from_state(state) assert nd == self.od + def test_in_any(self): + self.od["one"] = ["atwoa", "athreea"] + assert self.od.in_any("one", "two") + assert self.od.in_any("one", "three") + assert not self.od.in_any("one", "four") + assert not self.od.in_any("nonexistent", "foo") + assert not self.od.in_any("one", "TWO") + assert self.od.in_any("one", "TWO", True) + def test_copy(self): self.od.add("foo", 1) self.od.add("foo", 2) |