aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_flow.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_flow.py b/test/test_flow.py
index b8d1fad3..68316f2a 100644
--- a/test/test_flow.py
+++ b/test/test_flow.py
@@ -463,6 +463,11 @@ class TestFlow(object):
f.response.content = "\xc2foo"
f.replace("foo", u"bar")
+ def test_replace_no_content(self):
+ f = tutils.tflow()
+ f.request.content = CONTENT_MISSING
+ assert f.replace("foo", "bar") == 0
+
def test_replace(self):
f = tutils.tflow(resp=True)
f.request.headers["foo"] = "foo"