diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-04-21 22:29:25 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-04-21 22:29:25 +0200 |
commit | 73fad9249f2d54fa678081e55adf2c12b25fad6a (patch) | |
tree | 18d75dff80d02ba395ee855f925b5ab027756228 | |
parent | 565341b5faeacc912900bb244afc956cbf4a0a2a (diff) | |
download | paste-73fad9249f2d54fa678081e55adf2c12b25fad6a.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.py | 4 |
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) |