'makeProducer when the Range header requests a single byte range that
partly overlaps the resource sets the Content-* headers appropriately.'

def test_singlePartiallyOverlappingRangeSetsContentHeaders(self):

    request = DummyRequest([])
    request.requestHeaders.addRawHeader('range', 'bytes=2-10')
    contentType = 'text/plain'
    resource = self.makeResourceWithContent('abc', type=contentType)
    with resource.openForReading() as file:
        resource.makeProducer(request, file)
        self.assertEqual({'content-type': 'text/plain', 'content-length': '1', 'content-range': 'bytes    2-2/3'}, self.contentHeaders(request))
