'L{TLSMemoryBIOProtocol} instances provide the interfaces provided by
the transport they wrap.'

def test_wrappedProtocolInterfaces(self):

    class ITransport(Interface, ):
        pass
    class MyTransport(object, ):
        def write(self, data):
            pass
    clientFactory = ClientFactory()
    contextFactory = ClientTLSContext()
    wrapperFactory = TLSMemoryBIOFactory(contextFactory, True, clientFactory)
    transport = MyTransport()
    directlyProvides(transport, ITransport)
    tlsProtocol = TLSMemoryBIOProtocol(wrapperFactory, Protocol())
    tlsProtocol.makeConnection(transport)
    self.assertTrue(ITransport.providedBy(tlsProtocol))
