mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Passing bad-end range test.
This commit is contained in:
parent
62f547da9d
commit
e94a18b4e2
@ -217,7 +217,13 @@ class TestFileGet(TestHelper):
|
||||
self.datalen-25, self.datalen-1, self.datalen),
|
||||
25, self.data[-25:])
|
||||
|
||||
def test_range_bad(self):
|
||||
def test_range_bad_end(self):
|
||||
# expecting same result as test_range_negative
|
||||
self.drive_range("%d-%d"%(self.datalen-25, self.datalen*2),
|
||||
"%d-%d/%d"%(self.datalen-25, self.datalen-1, self.datalen),
|
||||
25, self.data[-25:])
|
||||
|
||||
def test_range_bad_start(self):
|
||||
resp = Conn().get(self.url, req_hdrs = {"Range": "bytes=%d-"%(
|
||||
self.datalen*2)})
|
||||
status, hdrs, body = parse(resp)
|
||||
|
Loading…
Reference in New Issue
Block a user