Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad NameLoad Str attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad NameLoad Str attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Str Assign SubscriptStore NameLoad Index TupleLoad NameLoad Str Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index TupleLoad NameLoad Str Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Str Str Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Str Str Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Tests for L{twisted.words.protocols.jabber.error}.
 twisted.trial unittest twisted.words.protocols.jabber error twisted.words.xish domish N/A NS_XML http://www.w3.org/XML/1998/namespace N/A NS_STREAMS http://etherx.jabber.org/streams N/A NS_XMPP_STREAMS urn:ietf:params:xml:ns:xmpp-streams N/A NS_XMPP_STANZAS urn:ietf:params:xml:ns:xmpp-stanzas BaseErrorTest N/A N/A unittest TestCase N/A test_getElementPlain N/A N/A self N/A N/A N/A 
        Test getting an element for a plain error.
         N/A e N/A N/A error BaseError feature-not-implemented N/A element N/A N/A e getElement N/A N/A N/A self assertIdentical N/A element uri None N/A N/A N/A self assertEquals N/A len N/A element children 1 N/A test_getElementText N/A N/A self N/A N/A N/A 
        Test getting an element for an error with a text.
         N/A e N/A N/A error BaseError feature-not-implemented text N/A element N/A N/A e getElement N/A N/A N/A self assertEquals N/A len N/A element children 2 N/A N/A N/A self assertEquals N/A unicode N/A element text text N/A N/A N/A self assertEquals N/A N/A N/A element text getAttribute N/A NS_XML lang None N/A test_getElementTextLang N/A N/A self N/A N/A N/A 
        Test getting an element for an error with a text and language.
         N/A e N/A N/A error BaseError feature-not-implemented text en_US N/A element N/A N/A e getElement N/A N/A N/A self assertEquals N/A len N/A element children 2 N/A N/A N/A self assertEquals N/A unicode N/A element text text N/A N/A N/A self assertEquals N/A N/A element text N/A N/A NS_XML lang en_US N/A test_getElementAppCondition N/A N/A self N/A N/A N/A 
        Test getting an element for an error with an app specific condition.
         N/A ac N/A N/A domish Element N/A testns myerror N/A e N/A N/A error BaseError feature-not-implemented appCondition ac N/A element N/A N/A e getElement N/A N/A N/A self assertEquals N/A len N/A element children 2 N/A N/A N/A self assertEquals N/A element myerror ac N/A N/A StreamErrorTest N/A N/A unittest TestCase N/A test_getElementPlain N/A N/A self N/A N/A N/A 
        Test namespace of the element representation of an error.
         N/A e N/A N/A error StreamError feature-not-implemented N/A element N/A N/A e getElement N/A N/A N/A self assertEquals N/A element uri NS_STREAMS N/A test_getElementConditionNamespace N/A N/A self N/A N/A N/A 
        Test that the error condition element has the correct namespace.
         N/A e N/A N/A error StreamError feature-not-implemented N/A element N/A N/A e getElement N/A N/A N/A self assertEquals NS_XMPP_STREAMS N/A N/A getattr element feature-not-implemented uri N/A test_getElementTextNamespace N/A N/A self N/A N/A N/A 
        Test that the error text element has the correct namespace.
         N/A e N/A N/A error StreamError feature-not-implemented text N/A element N/A N/A e getElement N/A N/A N/A self assertEquals NS_XMPP_STREAMS N/A N/A element text uri N/A N/A StanzaErrorTest N/A N/A unittest TestCase N/A N/A 
    Tests for L{error.StreamError}.
     test_typeRemoteServerTimeout N/A N/A self N/A N/A N/A 
        Remote Server Timeout should yield type wait, code 504.
         N/A e N/A N/A error StanzaError remote-server-timeout N/A N/A N/A self assertEquals wait N/A e type N/A N/A N/A self assertEquals 504 N/A e code N/A test_getElementPlain N/A N/A self N/A N/A N/A 
        Test getting an element for a plain stanza error.
         N/A e N/A N/A error StanzaError feature-not-implemented N/A element N/A N/A e getElement N/A N/A N/A self assertEquals N/A element uri None N/A N/A N/A self assertEquals N/A element N/A type cancel N/A N/A N/A self assertEquals N/A element N/A code 501 N/A test_getElementType N/A N/A self N/A N/A N/A 
        Test getting an element for a stanza error with a given type.
         N/A e N/A N/A error StanzaError feature-not-implemented auth N/A element N/A N/A e getElement N/A N/A N/A self assertEquals N/A element uri None N/A N/A N/A self assertEquals N/A element N/A type auth N/A N/A N/A self assertEquals N/A element N/A code 501 N/A test_getElementConditionNamespace N/A N/A self N/A N/A N/A 
        Test that the error condition element has the correct namespace.
         N/A e N/A N/A error StanzaError feature-not-implemented N/A element N/A N/A e getElement N/A N/A N/A self assertEquals NS_XMPP_STANZAS N/A N/A getattr element feature-not-implemented uri N/A test_getElementTextNamespace N/A N/A self N/A N/A N/A 
        Test that the error text element has the correct namespace.
         N/A e N/A N/A error StanzaError feature-not-implemented text text N/A element N/A N/A e getElement N/A N/A N/A self assertEquals NS_XMPP_STANZAS N/A N/A element text uri N/A test_toResponse N/A N/A self N/A N/A N/A 
        Test an error response is generated from a stanza.

        The addressing on the (new) response stanza should be reversed, an
        error child (with proper properties) added and the type set to
        C{'error'}.
         N/A stanza N/A N/A domish Element N/A jabber:client message N/A N/A stanza N/A type chat N/A N/A stanza N/A to user1@example.com N/A N/A stanza N/A from user2@example.com/resource N/A e N/A N/A error StanzaError service-unavailable N/A response N/A N/A e toResponse stanza N/A N/A N/A self assertNotIdentical response stanza N/A N/A N/A self assertEqual N/A response N/A from user1@example.com N/A N/A N/A self assertEqual N/A response N/A to user2@example.com/resource N/A N/A N/A self assertEqual N/A response N/A type error N/A N/A N/A self assertEqual N/A N/A N/A N/A response error children N/A 0 name service-unavailable N/A N/A N/A self assertEqual N/A N/A response error N/A type cancel N/A N/A N/A self assertNotEqual N/A stanza children N/A response children N/A N/A ParseErrorTest N/A N/A unittest TestCase N/A N/A 
    Tests for L{error._parseError}.
     setUp N/A N/A self N/A N/A N/A N/A self error N/A N/A domish Element N/A None error N/A test_empty N/A N/A self N/A N/A N/A 
        Test parsing of the empty error element.
         N/A result N/A N/A error _parseError N/A self error errorns N/A N/A N/A self assertEqual N/A condition text textLang appCondition None None None None result N/A test_condition N/A N/A self N/A N/A N/A 
        Test parsing of an error element with a condition.
         N/A N/A N/A N/A self error addElement N/A errorns bad-request N/A result N/A N/A error _parseError N/A self error errorns N/A N/A N/A self assertEqual bad-request N/A result N/A condition N/A test_text N/A N/A self N/A N/A N/A 
        Test parsing of an error element with a text.
         N/A text N/A N/A N/A self error addElement N/A errorns text N/A N/A N/A text addContent test N/A result N/A N/A error _parseError N/A self error errorns N/A N/A N/A self assertEqual test N/A result N/A text N/A N/A N/A self assertEqual None N/A result N/A textLang N/A test_textLang N/A N/A self N/A N/A N/A 
        Test parsing of an error element with a text with a defined language.
         N/A text N/A N/A N/A self error addElement N/A errorns text N/A N/A text N/A N/A NS_XML lang en_US N/A N/A N/A text addContent test N/A result N/A N/A error _parseError N/A self error errorns N/A N/A N/A self assertEqual en_US N/A result N/A textLang N/A test_textLangInherited N/A N/A self N/A N/A N/A 
        Test parsing of an error element with a text with inherited language.
         N/A text N/A N/A N/A self error addElement N/A errorns text N/A N/A N/A self error N/A N/A NS_XML lang en_US N/A N/A N/A text addContent test N/A result N/A N/A error _parseError N/A self error errorns N/A N/A N/A self assertEqual en_US N/A result N/A textLang N/A N/A N/A test_textLangInherited todo xml:lang inheritance not implemented test_appCondition N/A N/A self N/A N/A N/A 
        Test parsing of an error element with an app specific condition.
         N/A condition N/A N/A N/A self error addElement N/A testns condition N/A result N/A N/A error _parseError N/A self error errorns N/A N/A N/A self assertEqual condition N/A result N/A appCondition N/A test_appConditionMultiple N/A N/A self N/A N/A N/A 
        Test parsing of an error element with multiple app specific conditions.
         N/A N/A N/A N/A self error addElement N/A testns condition N/A condition N/A N/A N/A self error addElement N/A testns condition2 N/A result N/A N/A error _parseError N/A self error errorns N/A N/A N/A self assertEquals condition N/A result N/A appCondition N/A N/A ExceptionFromStanzaTest N/A N/A unittest TestCase N/A test_basic N/A N/A self N/A N/A N/A 
        Test basic operations of exceptionFromStanza.

        Given a realistic stanza, check if a sane exception is returned.

        Using this stanza::

          <iq type='error'
              from='pubsub.shakespeare.lit'
              to='francisco@denmark.lit/barracks'
              id='subscriptions1'>
            <pubsub xmlns='http://jabber.org/protocol/pubsub'>
              <subscriptions/>
            </pubsub>
            <error type='cancel'>
              <feature-not-implemented
                xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
              <unsupported xmlns='http://jabber.org/protocol/pubsub#errors'
                           feature='retrieve-subscriptions'/>
            </error>
          </iq>
         N/A stanza N/A N/A domish Element N/A None stanza N/A p N/A N/A stanza addElement N/A http://jabber.org/protocol/pubsub pubsub N/A N/A N/A p addElement subscriptions N/A e N/A N/A stanza addElement error N/A N/A e N/A type cancel N/A N/A N/A e addElement N/A NS_XMPP_STANZAS feature-not-implemented N/A uc N/A N/A e addElement N/A http://jabber.org/protocol/pubsub#errors unsupported N/A N/A uc N/A feature retrieve-subscriptions N/A result N/A N/A error exceptionFromStanza stanza N/A N/A N/A self assert_ N/A isinstance result N/A error StanzaError N/A N/A N/A self assertEquals feature-not-implemented N/A result condition N/A N/A N/A self assertEquals cancel N/A result type N/A N/A N/A self assertEquals uc N/A result appCondition N/A N/A N/A self assertEquals N/A p N/A result children N/A test_legacy N/A N/A self N/A N/A N/A 
        Test legacy operations of exceptionFromStanza.

        Given a realistic stanza with only legacy (pre-XMPP) error information,
        check if a sane exception is returned.

        Using this stanza::

          <message type='error'
                   to='piers@pipetree.com/Home'
                   from='qmacro@jaber.org'>
            <body>Are you there?</body>
            <error code='502'>Unable to resolve hostname.</error>
          </message>
         N/A stanza N/A N/A domish Element N/A None stanza N/A p N/A N/A stanza addElement body content Are you there? N/A e N/A N/A stanza addElement error content Unable to resolve hostname. N/A N/A e N/A code 502 N/A result N/A N/A error exceptionFromStanza stanza N/A N/A N/A self assert_ N/A isinstance result N/A error StanzaError N/A N/A N/A self assertEquals service-unavailable N/A result condition N/A N/A N/A self assertEquals wait N/A result type N/A N/A N/A self assertEquals Unable to resolve hostname. N/A result text N/A N/A N/A self assertEquals N/A p N/A result children N/A N/A ExceptionFromStreamErrorTest N/A N/A unittest TestCase N/A test_basic N/A N/A self N/A N/A N/A 
        Test basic operations of exceptionFromStreamError.

        Given a realistic stream error, check if a sane exception is returned.

        Using this error::

          <stream:error xmlns:stream='http://etherx.jabber.org/streams'>
            <xml-not-well-formed xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>
          </stream:error>
         N/A e N/A N/A domish Element N/A http://etherx.jabber.org/streams error N/A N/A N/A e addElement N/A NS_XMPP_STREAMS xml-not-well-formed N/A result N/A N/A error exceptionFromStreamError e N/A N/A N/A self assert_ N/A isinstance result N/A error StreamError N/A N/A N/A self assertEquals xml-not-well-formed N/A result condition N/A N/A