From df76700401ec2fd9028cc13b199deaae3102a3fa Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 21 Apr 2015 22:29:25 +0200 Subject: Update test_fileapp according to changeset b3f56e5b43e8 Now HTTP status 206 is used even if the range is the full content. --- tests/test_fileapp.py | 4 ++-- 1 file 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) -- cgit v1.2.1