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

def test_clientConnectionLost(self):

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