summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-04-21 22:29:25 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-04-21 22:29:25 +0200
commitdf76700401ec2fd9028cc13b199deaae3102a3fa (patch)
tree18d75dff80d02ba395ee855f925b5ab027756228
parent6a93b558db897ae4a7991eed09d8539b12d4b39f (diff)
downloadpaste-git-df76700401ec2fd9028cc13b199deaae3102a3fa.tar.gz
Update test_fileapp according to changeset b3f56e5b43e8
Now HTTP status 206 is used even if the range is the full content.
-rw-r--r--tests/test_fileapp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_fileapp.py b/tests/test_fileapp.py
index 3bf2bb9..4680917 100644
--- a/tests/test_fileapp.py
+++ b/tests/test_fileapp.py
@@ -187,7 +187,7 @@ def test_range():
content = LETTERS * 5
if six.PY3:
content = content.encode('utf8')
- def build(range, status=200):
+ def build(range, status=206):
app = DataApp(content)
return TestApp(app).get("/",headers={'Range': range}, status=status)
_excercize_range(build,content)
@@ -204,7 +204,7 @@ def test_file_range():
with open(tempfile, "wb") as fp:
fp.write(content)
try:
- def build(range, status=200):
+ def build(range, status=206):
app = fileapp.FileApp(tempfile)
return TestApp(app).get("/",headers={'Range': range},
status=status)