'If the wrapped factory doesn\'t have a L{logPrefix} method,
L{WrappingFactory.logPrefix} falls back to the factory class name.'

def test_factoryLogPrefixFallback(self):

    class NoFactory(object, ):
        pass
    server = NoFactory()
    factory = policies.WrappingFactory(server)
    self.assertEqual('NoFactory    (WrappingFactory)', factory.logPrefix())
