From e94a18b4e2651749375d32325dec742f30fe91d5 Mon Sep 17 00:00:00 2001 From: Emil Mikulic Date: Sun, 1 May 2011 18:54:06 +1000 Subject: [PATCH] Passing bad-end range test. --- devel/test.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/devel/test.py b/devel/test.py index 51fd0d4..fdfb256 100755 --- a/devel/test.py +++ b/devel/test.py @@ -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)