'Make sure protocol.factory is the wrapped factory, not the wrapping
factory.'

def test_protocolFactoryAttribute(self):

    f = Server()
    wf = policies.WrappingFactory(f)
    p = wf.buildProtocol(address.IPv4Address('TCP', '127.0.0.1', 35))
    self.assertIs(p.wrappedProtocol.factory, f)
