'L{H2Connection} can be registered with the transport as a producer.'

def test_registerProducerWithTransport(self):

    b = StringTransport()
    a = H2Connection()
    a.requestFactory = DummyHTTPHandlerProxy
    b.registerProducer(a, True)
    self.assertTrue((b.producer is a))
