def test_resumeProducingProducesContent(self):
        """
        L{NoRangeStaticProducer.resumeProducing} writes content from the
        resource to the request.
        """
        request = DummyRequest([])
        content = b'abcdef'
        producer = static.NoRangeStaticProducer(
            request, StringIO(content))
        # start calls registerProducer on the DummyRequest, which pulls all
        # output from the producer and so we just need this one call.
        producer.start()
        self.assertEqual(content, b''.join(request.written))

        L{NoRangeStaticProducer.resumeProducing} writes content from the
        resource to the request.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_static.py