def test_implicitStart(self):
    '\n        If the start byte position is omitted but the end byte position is\n        supplied, then the range is treated as requesting the last -N bytes of\n        the resource, where N is the end byte position.\n        '
    self.request.requestHeaders.addRawHeader(b'range', b'bytes=-17')
    self.resource.render(self.request)
    self.assertEqual(b''.join(self.request.written), self.payload[(- 17):])
    self.assertEqual(len(b''.join(self.request.written)), 17)
    self.assertEqual(self.request.responseCode, http.PARTIAL_CONTENT)
    self.assertEqual(self.request.responseHeaders.getRawHeaders(b'content-range')[0], b'bytes 47-63/64')
    self.assertEqual(self.request.responseHeaders.getRawHeaders(b'content-length')[0], b'17')
If the start byte position is omitted but the end byte position is
supplied, then the range is treated as requesting the last -N bytes of
the resource, where N is the end byte position.
def test_implicitStart(self):
    '\n        If the start byte position is omitted but the end byte position is\n        supplied, then the range is treated as requesting the last -N bytes of\n        the resource, where N is the end byte position.\n        '
    self.request.requestHeaders.addRawHeader(b'range', b'bytes=-17')
    self.resource.render(self.request)
    self.assertEqual(b.join(self.request.written), self.payload[(- 17):])
    self.assertEqual(len(b.join(self.request.written)), 17)
    self.assertEqual(self.request.responseCode, http.PARTIAL_CONTENT)
    self.assertEqual(self.request.responseHeaders.getRawHeaders(b'content-range')[0], b'bytes 47-63/64')
    self.assertEqual(self.request.responseHeaders.getRawHeaders(b'content-length')[0], b'17')