def unregisterProducer(self):
        """
        Unregister the producer, it should be done after a register.
        """
        assert self.producer is not None
        self.producer = None

        Unregister the producer, it should be done after a register.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_ftp.py