diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-07-22 20:52:13 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-07-22 20:52:13 +1200 |
commit | 47e16955122a4ae99f2f74b34d3dd42490687f2b (patch) | |
tree | 368ae82602f11f6c89d2d8f697c486178aa18d05 /test | |
parent | 6ce8b49e05dfc9d137418898bb6b372d6225f533 (diff) | |
download | mitmproxy-47e16955122a4ae99f2f74b34d3dd42490687f2b.tar.gz mitmproxy-47e16955122a4ae99f2f74b34d3dd42490687f2b.tar.bz2 mitmproxy-47e16955122a4ae99f2f74b34d3dd42490687f2b.zip |
Also replace strings path for requests.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_proxy.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_proxy.py b/test/test_proxy.py index a7627c1b..dacdbcc3 100644 --- a/test/test_proxy.py +++ b/test/test_proxy.py @@ -130,9 +130,11 @@ class uRequest(libpry.AutoTree): def test_replace(self): r = tutils.treq() + r.path = "path/foo" r.headers["Foo"] = ["fOo"] r.content = "afoob" - assert r.replace("foo", "boo", flags=re.I) == 3 + assert r.replace("foo", "boo", flags=re.I) == 4 + assert r.path == "path/boo" assert not "foo" in r.content assert r.headers["boo"] == ["boo"] |