mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Add test for backwards range.
This commit is contained in:
parent
e94a18b4e2
commit
e4ab741461
@ -229,6 +229,11 @@ class TestFileGet(TestHelper):
|
|||||||
status, hdrs, body = parse(resp)
|
status, hdrs, body = parse(resp)
|
||||||
self.assertContains(status, "416 Requested Range Not Satisfiable")
|
self.assertContains(status, "416 Requested Range Not Satisfiable")
|
||||||
|
|
||||||
|
def test_range_backwards(self):
|
||||||
|
resp = Conn().get(self.url, req_hdrs = {"Range": "bytes=20-10"})
|
||||||
|
status, hdrs, body = parse(resp)
|
||||||
|
self.assertContains(status, "416 Requested Range Not Satisfiable")
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
setUpModule()
|
setUpModule()
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
Loading…
Reference in New Issue
Block a user