Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (16 sloc) 0.598 kb
import random
import string
from base import *
from util import *
LENGTH = 100
class Test (TestBase):
def __init__ (self):
TestBase.__init__ (self, __file__) = "Bad Content Range"
self.request = "GET /BadRange1 HTTP/1.0\r\n" +\
"Range: bytes=%d-%d\r\n" % (LENGTH+2 ,LENGTH+3)
self.expected_error = 416
self.expected_content = "Content-Range: bytes */%d" % (LENGTH)
def Prepare (self, www):
random = letters_random (LENGTH)
self.WriteFile (www, "BadRange1", 0444, random)
Jump to Line
Something went wrong with that request. Please try again.