def test_singleUnsatisfiableRangeSetsContentHeaders(self):
    '\n        makeProducer when the Range header requests a single, unsatisfiable\n        byte range sets the Content-* headers appropriately.\n        '
    request = DummyRequest([])
    request.requestHeaders.addRawHeader(b'range', b'bytes=4-10')
    contentType = 'text/plain'
    resource = self.makeResourceWithContent(b'abc', type=contentType)
    with resource.openForReading() as file:
        resource.makeProducer(request, file)
        self.assertEqual({b'content-type': b'text/plain', b'content-length': b'0', b'content-range': b'bytes */3'}, self.contentHeaders(request))
makeProducer when the Range header requests a single, unsatisfiable
byte range sets the Content-* headers appropriately.
def test_singleUnsatisfiableRangeSetsContentHeaders(self):
    '\n        makeProducer when the Range header requests a single, unsatisfiable\n        byte range sets the Content-* headers appropriately.\n        '
    request = DummyRequest([])
    request.requestHeaders.addRawHeader(b'range', b'bytes=4-10')
    contentType = 'text/plain'
    resource = self.makeResourceWithContent(b'abc', type=contentType)
    with resource.openForReading() as file:
        resource.makeProducer(request, file)
        self.assertEqual({b'content-type': b'text/plain', b'content-length': b'0', b'content-range': b'bytes */3'}, self.contentHeaders(request))