A very basic test consumer for use with the NonStreamingProducerTests.

Method __init__ Undocumented
Method registerProducer Registers a single producer with this consumer. Just keeps track of it.
Method unregisterProducer Forget the producer we had previously registered.
Method write Some data was written to the consumer: stores it for later use.
def __init__(self):
Undocumented
def registerProducer(self, producer, streaming):

Registers a single producer with this consumer. Just keeps track of it.

ParametersproducerThe producer to register.
streamingWhether the producer is a streaming one or not.
def unregisterProducer(self):

Forget the producer we had previously registered.

def write(self, data):

Some data was written to the consumer: stores it for later use.

ParametersdataThe data to write.
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.