def write(self):
        """
        Write large amount to transport, then wait for a while for buffers to
        fill up.
        """
        self.transport.registerProducer(self, True)
        for i in range(100):
            self.transport.write(b"1234567890" * 32000)

        Write large amount to transport, then wait for a while for buffers to
        fill up.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_tcp.py