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

def test_protocolLogPrefixFallback(self):

    class NoProtocol(object, ):
        pass
    server = Server()
    server.protocol = NoProtocol
    factory = policies.WrappingFactory(server)
    protocol = factory.buildProtocol(address.IPv4Address('TCP', '127.0.0.1', 35))
    self.assertEqual('NoProtocol    (ProtocolWrapper)', protocol.logPrefix())
