Module Expr Str ImportFrom alias alias Assign NameStore NameLoad ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad orelse ImportFrom alias alias ImportFrom alias ClassDef bases body Assign NameStore ListLoad NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Dict Str Str NameLoad NameLoad decorator_list ClassDef bases NameLoad body Import alias Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad Call NameLoad AttributeLoad NameLoad attr attr Str attr Str Delete NameDel FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list Return Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad decorator_list decorator_list Call NameLoad NameLoad ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad Num Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad Call NameLoad NameLoad Str AttributeLoad NameLoad attr Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad Num Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad Str AttributeLoad NameLoad attr Call NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Str Num Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot NameLoad NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Assign NameStore Call NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Num NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return BinOpMod Str TupleLoad NameLoad AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpMod Str TupleLoad AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Expr Call AttributeLoad Call NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad attr Call AttributeLoad Call NameLoad attr ClassDef bases NameLoad NameLoad NameLoad body Expr Str Assign NameStore TupleLoad NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Return NameLoad Assign NameStore Call NameLoad keyword Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIs NameLoad NameLoad body Raise Call NameLoad Str decorator_list decorator_list Expr Call AttributeLoad Call NameLoad attr Call AttributeLoad NameLoad attr
N/A N/A 
Tests for implementations of L{ITLSTransport}.
 __future__ division absolute_import N/A __metaclass__ type zope.interface implementer twisted.python.compat networkString twisted.python.filepath FilePath twisted.internet.test.reactormixins ReactorBuilder twisted.internet.protocol ServerFactory ClientFactory Protocol twisted.internet.interfaces IReactorSSL ITLSTransport IStreamClientEndpoint twisted.internet.defer Deferred DeferredList twisted.internet.endpoints SSL4ServerEndpoint SSL4ClientEndpoint TCP4ClientEndpoint twisted.internet.error ConnectionClosed twisted.internet.task Cooperator twisted.trial.unittest SkipTest twisted.python.runtime platform twisted.internet.test.test_core ObjectModelIntegrationMixin twisted.internet.test.test_tcp StreamTransportTestsMixin AbortConnectionMixin twisted.internet.test.connectionmixins EndpointCreator ConnectionTestsMixin BrokenContextFactory N/A N/A OpenSSL.crypto FILETYPE_PEM N/A N/A N/A ImportError N/A N/A FILETYPE_PEM None N/A twisted.internet.ssl PrivateCertificate KeyPair twisted.internet.ssl ClientContextFactory TLSMixin N/A N/A N/A requiredInterfaces N/A IReactorSSL N/A N/A N/A platform isWindows N/A N/A msg For some reason, these reactors don't deal with SSL disconnection correctly on Windows.  See #3371. N/A skippedReactors N/A twisted.internet.glib2reactor.Glib2Reactor twisted.internet.gtk2reactor.Gtk2Reactor msg msg N/A ContextGeneratingMixin N/A object N/A N/A twisted N/A _pem N/A N/A N/A N/A N/A FilePath N/A networkString N/A twisted __file__ sibling test child server.pem N/A twisted getServerContext N/A N/A self N/A N/A N/A 
        Return a new SSL context suitable for use in a test server.
         N/A pem N/A N/A N/A self _pem getContent N/A cert N/A N/A PrivateCertificate load pem N/A N/A KeyPair load pem FILETYPE_PEM FILETYPE_PEM N/A N/A N/A cert options N/A getClientContext N/A N/A self N/A N/A N/A N/A ClientContextFactory N/A N/A StartTLSClientEndpoint N/A object N/A N/A 
    An endpoint which wraps another one and adds a TLS layer immediately when
    connections are set up.

    @ivar wrapped: A L{IStreamClientEndpoint} provider which will be used to
        really set up connections.

    @ivar contextFactory: A L{ContextFactory} to use to do TLS.
     __init__ N/A N/A self wrapped contextFactory N/A N/A N/A N/A self wrapped wrapped N/A N/A self contextFactory contextFactory N/A connect N/A N/A self factory N/A N/A N/A 
        Establish a connection using a protocol build by C{factory} and
        immediately start TLS on it.  Return a L{Deferred} which fires with the
        protocol instance.
         WrapperFactory N/A ServerFactory N/A buildProtocol N/A N/A wrapperSelf addr N/A N/A N/A protocol N/A N/A factory buildProtocol addr connectionMade N/A N/A orig N/A N/A protocol connectionMade N/A N/A N/A N/A N/A protocol transport startTLS N/A self contextFactory N/A N/A orig N/A N/A N/A protocol connectionMade connectionMade N/A protocol N/A N/A N/A N/A N/A N/A self wrapped connect N/A WrapperFactory N/A N/A N/A implementer IStreamClientEndpoint StartTLSClientCreator N/A EndpointCreator ContextGeneratingMixin N/A N/A 
    Create L{ITLSTransport.startTLS} endpoint for the client, and normal SSL
    for server just because it's easier.
     server N/A N/A self reactor N/A N/A N/A 
        Construct an SSL server endpoint.  This should be constructing a TCP
        server endpoint which immediately calls C{startTLS} instead, but that
        is hard.
         N/A N/A SSL4ServerEndpoint reactor 0 N/A N/A self getServerContext N/A client N/A N/A self reactor serverAddress N/A N/A N/A 
        Construct a TCP client endpoint wrapped to immediately start TLS.
         N/A N/A StartTLSClientEndpoint N/A TCP4ClientEndpoint reactor 127.0.0.1 N/A serverAddress port N/A ClientContextFactory N/A N/A BadContextTestsMixin N/A object N/A N/A 
    Mixin for L{ReactorBuilder} subclasses which defines a helper for testing
    the handling of broken context factories.
     _testBadContext N/A N/A self useIt N/A N/A N/A 
        Assert that the exception raised by a broken context factory's
        C{getContext} method is raised by some reactor method.  If it is not, an
        exception will be raised to fail the test.

        @param useIt: A two-argument callable which will be called with a
            reactor and a broken context factory and which is expected to raise
            the same exception as the broken context factory's C{getContext}
            method.
         N/A reactor N/A N/A self buildReactor N/A exc N/A N/A self assertRaises ValueError useIt reactor N/A BrokenContextFactory N/A N/A N/A self assertEqual N/A BrokenContextFactory message N/A str exc N/A N/A StartTLSClientTestsMixin N/A TLSMixin ReactorBuilder ConnectionTestsMixin N/A N/A 
    Tests for TLS connections established using L{ITLSTransport.startTLS} (as
    opposed to L{IReactorSSL.connectSSL} or L{IReactorSSL.listenSSL}).
     N/A endpoints N/A StartTLSClientCreator N/A SSLCreator N/A EndpointCreator ContextGeneratingMixin N/A N/A 
    Create SSL endpoints.
     server N/A N/A self reactor N/A N/A N/A 
        Create an SSL server endpoint on a TCP/IP-stack allocated port.
         N/A N/A SSL4ServerEndpoint reactor 0 N/A N/A self getServerContext N/A client N/A N/A self reactor serverAddress N/A N/A N/A 
        Create an SSL client endpoint which will connect localhost on
        the port given by C{serverAddress}.

        @type serverAddress: L{IPv4Address}
         N/A N/A SSL4ClientEndpoint reactor 127.0.0.1 N/A serverAddress port N/A ClientContextFactory N/A N/A SSLClientTestsMixin N/A TLSMixin ReactorBuilder ContextGeneratingMixin ConnectionTestsMixin BadContextTestsMixin N/A N/A 
    Mixin defining tests relating to L{ITLSTransport}.
     N/A endpoints N/A SSLCreator test_badContext N/A N/A self N/A N/A N/A 
        If the context factory passed to L{IReactorSSL.connectSSL} raises an
        exception from its C{getContext} method, that exception is raised by
        L{IReactorSSL.connectSSL}.
         useIt N/A N/A reactor contextFactory N/A N/A N/A N/A N/A reactor connectSSL 127.0.0.1 1234 N/A ClientFactory contextFactory N/A N/A N/A N/A self _testBadContext useIt N/A test_disconnectAfterWriteAfterStartTLS N/A N/A self N/A N/A N/A 
        L{ITCPTransport.loseConnection} ends a connection which was set up with
        L{ITLSTransport.startTLS} and which has recently been written to.  This
        is intended to verify that a socket send error masked by the TLS
        implementation doesn't prevent the connection from being reported as
        closed.
         ShortProtocol N/A Protocol N/A connectionMade N/A N/A self N/A N/A N/A N/A N/A N/A ITLSTransport providedBy N/A self transport N/A N/A finished N/A N/A self factory finished N/A N/A N/A self factory finished None N/A N/A N/A finished errback N/A SkipTest No ITLSTransport support N/A N/A N/A N/A N/A self transport startTLS N/A N/A self factory context N/A N/A N/A N/A self transport write x N/A dataReceived N/A N/A self data N/A N/A N/A N/A N/A N/A self transport write y N/A N/A N/A N/A self transport loseConnection N/A connectionLost N/A N/A self reason N/A N/A N/A finished N/A N/A self factory finished N/A N/A finished None N/A N/A N/A N/A self factory finished None N/A N/A N/A finished callback reason N/A N/A N/A reactor N/A N/A self buildReactor N/A serverFactory N/A ServerFactory N/A N/A serverFactory finished N/A Deferred N/A N/A serverFactory protocol ShortProtocol N/A N/A serverFactory context N/A N/A self getServerContext N/A clientFactory N/A ClientFactory N/A N/A clientFactory finished N/A Deferred N/A N/A clientFactory protocol ShortProtocol N/A N/A clientFactory context N/A N/A self getClientContext N/A N/A N/A clientFactory context method N/A N/A serverFactory context method N/A lostConnectionResults N/A N/A finished N/A DeferredList N/A N/A serverFactory finished N/A clientFactory finished consumeErrors True cbFinished N/A N/A results N/A N/A N/A N/A N/A lostConnectionResults extend N/A N/A N/A results N/A 0 N/A 1 N/A N/A results N/A 1 N/A 1 N/A N/A N/A N/A finished addCallback cbFinished N/A port N/A N/A reactor listenTCP 0 serverFactory interface 127.0.0.1 N/A N/A N/A self addCleanup N/A port stopListening N/A connector N/A N/A reactor connectTCP N/A N/A N/A port getHost host N/A N/A N/A port getHost port clientFactory N/A N/A N/A self addCleanup N/A connector disconnect N/A N/A N/A finished addCallback N/A N/A N/A ign N/A N/A N/A reactor stop N/A N/A N/A self runReactor reactor N/A N/A N/A N/A lostConnectionResults N/A 0 trap ConnectionClosed N/A N/A N/A N/A lostConnectionResults N/A 1 trap ConnectionClosed N/A N/A TLSPortTestsBuilder N/A TLSMixin ContextGeneratingMixin ObjectModelIntegrationMixin BadContextTestsMixin StreamTransportTestsMixin ReactorBuilder N/A N/A 
    Tests for L{IReactorSSL.listenSSL}
     getListeningPort N/A N/A self reactor factory N/A N/A N/A 
        Get a TLS port from a reactor.
         N/A N/A N/A reactor listenSSL 0 factory N/A N/A self getServerContext N/A getExpectedStartListeningLogMessage N/A N/A self port factory N/A N/A N/A 
        Get the message expected to be logged when a TLS port starts listening.
         N/A N/A %s (TLS) starting on %d N/A factory N/A N/A N/A port getHost port N/A getExpectedConnectionLostLogMsg N/A N/A self port N/A N/A N/A 
        Get the expected connection lost message for a TLS port.
         N/A N/A (TLS Port %s Closed) N/A N/A N/A N/A port getHost port N/A test_badContext N/A N/A self N/A N/A N/A 
        If the context factory passed to L{IReactorSSL.listenSSL} raises an
        exception from its C{getContext} method, that exception is raised by
        L{IReactorSSL.listenSSL}.
         useIt N/A N/A reactor contextFactory N/A N/A N/A N/A N/A reactor listenSSL 0 N/A ServerFactory contextFactory N/A N/A N/A N/A self _testBadContext useIt N/A N/A N/A N/A N/A N/A globals update N/A N/A SSLClientTestsMixin makeTestCaseClasses N/A N/A N/A N/A globals update N/A N/A StartTLSClientTestsMixin makeTestCaseClasses N/A N/A N/A N/A globals update N/A N/A N/A TLSPortTestsBuilder makeTestCaseClasses AbortSSLConnectionTest N/A ReactorBuilder AbortConnectionMixin ContextGeneratingMixin N/A N/A 
    C{abortConnection} tests using SSL.
     N/A requiredInterfaces N/A IReactorSSL N/A endpoints N/A SSLCreator buildReactor N/A N/A self N/A N/A N/A reactor N/A N/A ReactorBuilder buildReactor self N/A N/A twisted.protocols tls N/A N/A N/A ImportError N/A N/A reactor N/A cooperator N/A Cooperator scheduler N/A N/A N/A x N/A N/A N/A reactor callLater 1e-05 x N/A N/A N/A self patch tls cooperate N/A cooperator cooperate N/A reactor N/A setUp N/A N/A self N/A N/A N/A N/A FILETYPE_PEM None N/A N/A N/A SkipTest OpenSSL not available. N/A N/A N/A N/A N/A N/A globals update N/A N/A AbortSSLConnectionTest makeTestCaseClasses