aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-07-22 20:52:13 +1200
committerAldo Cortesi <aldo@nullcube.com>2011-07-22 20:52:13 +1200
commit47e16955122a4ae99f2f74b34d3dd42490687f2b (patch)
tree368ae82602f11f6c89d2d8f697c486178aa18d05 /test
parent6ce8b49e05dfc9d137418898bb6b372d6225f533 (diff)
downloadmitmproxy-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.py4
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"]