Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias Expr Call NameLoad Str ImportFrom alias Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Dict NameLoad Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Str NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Str NameLoad decorator_list decorator_list Call NameLoad NameLoad NameLoad If CompareEq NameLoad Str body ImportFrom alias Expr Call NameLoad NameLoad keyword NameLoad
N/A N/A 
    :codeauthor: :email:`Rahul Handay <rahulha@saltstack.com>`
 __future__ absolute_import salttesting TestCase skipIf salttesting.helpers ensure_in_syspath salttesting.mock MagicMock patch NO_MOCK NO_MOCK_REASON N/A N/A ensure_in_syspath ../../ salt.states xmpp N/A N/A xmpp __salt__ N/A N/A N/A xmpp __opts__ N/A XmppTestCase N/A TestCase N/A N/A 
        Validate the xmpp state
     test_send_msg N/A N/A self N/A N/A N/A 
            Test to send a message to an XMPP user
         N/A ret N/A name changes result comment salt N/A None N/A N/A N/A patch dict N/A xmpp __opts__ N/A test True N/A N/A N/A N/A ret update N/A comment Need to send message to myaccount: salt N/A N/A N/A self assertDictEqual N/A N/A xmpp send_msg salt myaccount salt@saltstack.com ret N/A N/A N/A patch dict N/A xmpp __opts__ N/A test False N/A N/A mock N/A MagicMock return_value True N/A N/A N/A patch dict N/A xmpp __salt__ N/A xmpp.send_msg xmpp.send_msg_multi mock mock N/A N/A N/A N/A ret update N/A result comment True Sent message to myaccount: salt N/A N/A N/A self assertDictEqual N/A N/A xmpp send_msg salt myaccount salt@saltstack.com ret N/A N/A N/A skipIf NO_MOCK NO_MOCK_REASON N/A N/A __name__ __main__ N/A integration run_tests N/A N/A run_tests XmppTestCase needs_daemon False