def test_statusCodeRequestedRangeNotSatisfiable(self):
    '\n        If a range is syntactically invalid due to the start being greater than\n        the end, the range header is ignored (the request is responded to as if\n        it were not present).\n        '
    self.request.requestHeaders.addRawHeader(b'range', b'bytes=20-13')
    self.resource.render(self.request)
    self.assertEqual(self.request.responseCode, http.OK)
    self.assertEqual(b''.join(self.request.written), self.payload)
    self.assertEqual(self.request.responseHeaders.getRawHeaders(b'content-length')[0], (b'%d' % (len(self.payload),)))
If a range is syntactically invalid due to the start being greater than
the end, the range header is ignored (the request is responded to as if
it were not present).
def test_statusCodeRequestedRangeNotSatisfiable(self):
    '\n        If a range is syntactically invalid due to the start being greater than\n        the end, the range header is ignored (the request is responded to as if\n        it were not present).\n        '
    self.request.requestHeaders.addRawHeader(b'range', b'bytes=20-13')
    self.resource.render(self.request)
    self.assertEqual(self.request.responseCode, http.OK)
    self.assertEqual(b.join(self.request.written), self.payload)
    self.assertEqual(self.request.responseHeaders.getRawHeaders(b'content-length')[0], (b'%d' % (len(self.payload),)))