'L{policies.WrappingFactory.clientConnectionFailed} calls
C{clientConnectionFailed} on the underlying factory.'

def test_clientConnectionFailed(self):

    result = []
    class Factory(object, ):
        def clientConnectionFailed(self, connector, reason):
            result.append((connector, reason))
    wrapper = policies.WrappingFactory(Factory())
    connector = object()
    reason = object()
    wrapper.clientConnectionFailed(connector, reason)
    self.assertEqual(result, [(connector, reason)])
