'A correct response to a range request is as long as the length of the
requested range.'

def test_bodyLength(self):

    self.request.requestHeaders.addRawHeader('range', 'bytes=0-43')
    self.resource.render(self.request)
    self.assertEqual(len(''.join(self.request.written)), 44)
