def test_noRangeHeaderGivesNoRangeStaticProducer(self):
        """
        makeProducer when no Range header is set returns an instance of
        NoRangeStaticProducer.
        """
        resource = self.makeResourceWithContent(b'')
        request = DummyRequest([])
        with resource.openForReading() as file:
            producer = resource.makeProducer(request, file)
            self.assertIsInstance(producer, static.NoRangeStaticProducer)

        makeProducer when no Range header is set returns an instance of
        NoRangeStaticProducer.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_static.py