'The transport wrapper passed to the wrapped protocol\'s
C{makeConnection} provides the same interfaces as are provided by the
original transport.'

def test_transportInterfaces(self):

    class IStubTransport(Interface, ):
        pass
    @implementer(IStubTransport)
    class StubTransport:
        pass
    implementedBy(policies.ProtocolWrapper)
    proto = protocol.Protocol()
    wrapper = policies.ProtocolWrapper(policies.WrappingFactory(None), proto)
    wrapper.makeConnection(StubTransport())
    self.assertTrue(IStubTransport.providedBy(proto.transport))
