Module Expr Str ImportFrom alias ImportFrom alias identifier ImportFrom alias ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str While Call AttributeLoad NameLoad attr body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpOr NameLoad NameLoad body Return Num orelse Return Num decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareNotEq NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareNotEq NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareNotEq NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareEq NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr CompareNotEq NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr CompareEq NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr CompareNotEq NameLoad Call NameLoad decorator_list decorator_list
N/A N/A 
I{Private} test utilities for use throughout Twisted's test suite.  Unlike
C{proto_helpers}, this is no exception to the
don't-use-it-outside-Twisted-we-won't-maintain-compatibility rule!

@note: Maintainers be aware: things in this module should be gradually promoted
    to more full-featured test helpers and exposed as public API as your
    maintenance time permits.  In order to be public API though, they need
    their own test cases.
 io BytesIO xml.dom minidom dom twisted.internet.protocol FileWrapper IOPump N/A N/A N/A Utility to pump data between clients and servers for protocol testing.

    Perhaps this is a utility worthy of being in protocol.py?
     __init__ N/A N/A self client server clientIO serverIO N/A N/A N/A N/A self client client N/A N/A self server server N/A N/A self clientIO clientIO N/A N/A self serverIO serverIO N/A flush N/A N/A self N/A N/A N/A Pump until there is no more input or output. N/A N/A N/A self pump N/A N/A N/A pump N/A N/A self N/A N/A N/A Move data back and forth.

        Returns whether any data was moved.
         N/A N/A N/A N/A self clientIO seek 0 N/A N/A N/A N/A self serverIO seek 0 N/A cData N/A N/A N/A self clientIO read N/A sData N/A N/A N/A self serverIO read N/A N/A N/A N/A self clientIO seek 0 N/A N/A N/A N/A self serverIO seek 0 N/A N/A N/A N/A self clientIO truncate N/A N/A N/A N/A self serverIO truncate N/A byte cData N/A N/A N/A N/A N/A self server dataReceived byte N/A byte sData N/A N/A N/A N/A N/A self client dataReceived byte N/A N/A cData sData N/A N/A 1 N/A N/A 0 N/A N/A returnConnected N/A N/A server client N/A N/A N/A Take two Protocol instances and connect them.
     N/A cio N/A BytesIO N/A sio N/A BytesIO N/A N/A N/A client makeConnection N/A FileWrapper cio N/A N/A N/A server makeConnection N/A FileWrapper sio N/A pump N/A IOPump client server cio sio N/A N/A N/A pump flush N/A N/A N/A pump flush N/A pump N/A XMLAssertionMixin N/A object N/A N/A 
    Test mixin defining a method for comparing serialized XML documents.

    Must be mixed in to a L{test case<unittest.TestCase>}.
     assertXMLEqual N/A N/A self first second N/A N/A N/A 
        Verify that two strings represent the same XML document.

        @param first: An XML string.
        @type first: L{bytes}

        @param second: An XML string that should match C{first}.
        @type second: L{bytes}
         N/A N/A N/A self assertEqual N/A N/A N/A N/A dom parseString first toxml N/A N/A N/A N/A dom parseString second toxml N/A N/A _Equal N/A object N/A N/A 
    A class the instances of which are equal to anything and everything.
     __eq__ N/A N/A self other N/A N/A N/A True N/A __ne__ N/A N/A self other N/A N/A N/A False N/A N/A _NotEqual N/A object N/A N/A 
    A class the instances of which are equal to nothing.
     __eq__ N/A N/A self other N/A N/A N/A False N/A __ne__ N/A N/A self other N/A N/A N/A True N/A N/A ComparisonTestsMixin N/A object N/A N/A 
    A mixin which defines a method for making assertions about the correctness
    of an implementation of C{==} and C{!=}.

    Use this to unit test objects which follow the common convention for C{==}
    and C{!=}:

        - The object compares equal to itself
        - The object cooperates with unrecognized types to allow them to
          implement the comparison
        - The object implements not-equal as the opposite of equal
     assertNormalEqualityImplementation N/A N/A self firstValueOne secondValueOne valueTwo N/A N/A N/A 
        Assert that C{firstValueOne} is equal to C{secondValueOne} but not
        equal to C{valueOne} and that it defines equality cooperatively with
        other types it doesn't know about.

        @param firstValueOne: An object which is expected to compare as equal to
            C{secondValueOne} and not equal to C{valueTwo}.

        @param secondValueOne: A different object than C{firstValueOne} but
            which is expected to compare equal to that object.

        @param valueTwo: An object which is expected to compare as not equal to
            C{firstValueOne}.
         N/A N/A N/A self assertTrue N/A firstValueOne firstValueOne N/A N/A N/A self assertTrue N/A firstValueOne secondValueOne N/A N/A N/A self assertFalse N/A firstValueOne valueTwo N/A N/A N/A self assertFalse N/A firstValueOne firstValueOne N/A N/A N/A self assertFalse N/A firstValueOne secondValueOne N/A N/A N/A self assertTrue N/A firstValueOne valueTwo N/A N/A N/A self assertTrue N/A firstValueOne N/A _Equal N/A N/A N/A self assertFalse N/A firstValueOne N/A _Equal N/A N/A N/A self assertFalse N/A firstValueOne N/A _NotEqual N/A N/A N/A self assertTrue N/A firstValueOne N/A _NotEqual N/A N/A