'The address passed to the factory\'s buildProtocol in the endpoint is a
_ProcessAddress instance.'

def test_processAddress(self):

    class TestAddrFactory(protocol.Factory, ):
        protocol = StubApplicationProtocol
        address = None
        def buildProtocol(self, addr):
            self.address = addr
            p = self.protocol()
            p.factory = self
            return p
    myFactory = TestAddrFactory()
    d = self.ep.connect(myFactory)
    self.successResultOf(d)
    self.assertIsInstance(myFactory.address, _ProcessAddress)
