def test_implicitEnd(self):
    '\n        If the end byte position is omitted, then it is treated as if the\n        length of the resource was specified by the end byte position.\n        '
    self.request.requestHeaders.addRawHeader(b'range', b'bytes=23-')
    self.resource.render(self.request)
    self.assertEqual(b''.join(self.request.written), self.payload[23:])
    self.assertEqual(len(b''.join(self.request.written)), 41)
    self.assertEqual(self.request.responseCode, http.PARTIAL_CONTENT)
    self.assertEqual(self.request.responseHeaders.getRawHeaders(b'content-range')[0], b'bytes 23-63/64')
    self.assertEqual(self.request.responseHeaders.getRawHeaders(b'content-length')[0], b'41')
If the end byte position is omitted, then it is treated as if the
length of the resource was specified by the end byte position.
def test_implicitEnd(self):
    '\n        If the end byte position is omitted, then it is treated as if the\n        length of the resource was specified by the end byte position.\n        '
    self.request.requestHeaders.addRawHeader(b'range', b'bytes=23-')
    self.resource.render(self.request)
    self.assertEqual(b.join(self.request.written), self.payload[23:])
    self.assertEqual(len(b.join(self.request.written)), 41)
    self.assertEqual(self.request.responseCode, http.PARTIAL_CONTENT)
    self.assertEqual(self.request.responseHeaders.getRawHeaders(b'content-range')[0], b'bytes 23-63/64')
    self.assertEqual(self.request.responseHeaders.getRawHeaders(b'content-length')[0], b'41')