

def buildProtocol(self, addr):
    '\n        Create the protocol instance, keeps track of it, and makes it use\n        C{clientFactoryInstance} as client factory.\n        '
    proto = portforward.ProxyFactory.buildProtocol(self, addr)
    self.clientFactoryInstance = TestableProxyClientFactory()
    proto.clientProtocolFactory = (lambda : self.clientFactoryInstance)
    self.protoInstance = proto
    return proto

dataset/ETHPy150Open twisted/twisted/twisted/test/test_protocols.py TestableProxyFactory.buildProtocol/original