'makeProducer when no Range header is set sets the Content-* headers
for the response.'

def test_noRangeHeaderSetsContentHeaders(self):

    length = 123
    contentType = 'text/plain'
    contentEncoding = 'gzip'
    resource = self.makeResourceWithContent(('a' * length), type=contentType, encoding=contentEncoding)
    request = DummyRequest([])
    with resource.openForReading() as file:
        resource.makeProducer(request, file)
        self.assertEqual({'content-type': networkString(contentType), 'content-length': intToBytes(length), 'content-encoding': networkString(contentEncoding)}, self.contentHeaders(request))
