'L{StringTransport.registerProducer} records the arguments supplied to
it as instance attributes.'

def test_registerProducer(self):

    producer = object()
    streaming = object()
    self.transport.registerProducer(producer, streaming)
    self.assertIs(self.transport.producer, producer)
    self.assertIs(self.transport.streaming, streaming)
