diff options
Diffstat (limited to 'test/test_proxy.py')
-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"] |