def test_multipleUnsatisfiableRangeSetsContentHeaders(self):
    '\n        makeProducer when the Range header requests multiple ranges, none of\n        which are satisfiable, sets the Content-* headers appropriately.\n        '
    request = DummyRequest([])
    request.requestHeaders.addRawHeader(b'range', b'bytes=4-10')
    contentType = 'text/plain'
    request.requestHeaders.addRawHeader(b'range', b'bytes=10-12,15-20')
    resource = self.makeResourceWithContent(b'abc', type=contentType)
    with resource.openForReading() as file:
        resource.makeProducer(request, file)
        self.assertEqual({b'content-length': b'0', b'content-range': b'bytes */3', b'content-type': b'text/plain'}, self.contentHeaders(request))
makeProducer when the Range header requests multiple ranges, none of
which are satisfiable, sets the Content-* headers appropriately.
def test_multipleUnsatisfiableRangeSetsContentHeaders(self):
    '\n        makeProducer when the Range header requests multiple ranges, none of\n        which are satisfiable, sets the Content-* headers appropriately.\n        '
    request = DummyRequest([])
    request.requestHeaders.addRawHeader(b'range', b'bytes=4-10')
    contentType = 'text/plain'
    request.requestHeaders.addRawHeader(b'range', b'bytes=10-12,15-20')
    resource = self.makeResourceWithContent(b'abc', type=contentType)
    with resource.openForReading() as file:
        resource.makeProducer(request, file)
        self.assertEqual({b'content-length': b'0', b'content-range': b'bytes */3', b'content-type': b'text/plain'}, self.contentHeaders(request))