return proper status codes in range get, fix suffix range

This commit is contained in:
Konstantinos Koukopoulos 2015-02-10 19:14:47 +02:00
commit 418a6a118e
2 changed files with 26 additions and 11 deletions

View file

@ -703,4 +703,4 @@ def test_ranged_get():
key.set_contents_from_string('0' * 50 + '1' * 50)
key.get_contents_as_string(headers={'Range': 'bytes=45-55'}).should.equal(b'0' * 5 + b'1' * 5)
key.get_contents_as_string(headers={'Range': 'bytes=45-'}).should.equal(b'0' * 5 + b'1' * 50)
key.get_contents_as_string(headers={'Range': 'bytes=-55'}).should.equal(b'0' * 50 + b'1' * 5)
key.get_contents_as_string(headers={'Range': 'bytes=-55'}).should.equal(b'0' * 5 + b'1' * 50)