def test_bodyLength(self):
    '\n        A correct response to a range request is as long as the length of the\n        requested range.\n        '
    self.request.requestHeaders.addRawHeader(b'range', b'bytes=0-43')
    self.resource.render(self.request)
    self.assertEqual(len(b''.join(self.request.written)), 44)
A correct response to a range request is as long as the length of the
requested range.
def test_bodyLength(self):
    '\n        A correct response to a range request is as long as the length of the\n        requested range.\n        '
    self.request.requestHeaders.addRawHeader(b'range', b'bytes=0-43')
    self.resource.render(self.request)
    self.assertEqual(len(b.join(self.request.written)), 44)