Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str Str Str NameLoad body With Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str NameLoad body With Call AttributeLoad NameLoad attr NameLoad Str keyword Str body With Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str keyword Call NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad body With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad Str keyword Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str 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:`Rupesh Tare <rupesht@saltstack.com>`
 __future__ absolute_import salttesting TestCase skipIf salttesting.mock MagicMock patch NO_MOCK NO_MOCK_REASON salt.modules event N/A salt.utils.event N/A sys N/A N/A N/A N/A sys path append /home/kapil/salt/salt/utils N/A N/A event __grains__ N/A N/A N/A event __salt__ N/A N/A N/A event __context__ N/A N/A N/A event __opts__ N/A EventTestCase N/A TestCase N/A N/A 
    Test cases for salt.modules.event
     test_fire_master N/A N/A self salt_crypt_sauth salt_transport_channel_factory N/A N/A N/A 
        Test for Fire an event off up to the master server
         N/A preload N/A id tag data tok cmd id tag data salt _minion_event N/A N/A N/A patch dict N/A event __opts__ N/A transport id local raet id False N/A N/A N/A N/A patch object salt_transport_channel_factory send return_value None N/A N/A N/A N/A self assertTrue N/A N/A event fire_master data tag N/A N/A N/A patch dict N/A event __opts__ N/A transport id master_uri local A id localhost False N/A N/A N/A N/A patch object salt_crypt_sauth gen_token return_value tok N/A N/A N/A N/A patch object salt_transport_channel_factory send return_value None N/A N/A N/A N/A self assertTrue N/A N/A event fire_master data tag preload N/A N/A N/A patch dict N/A event __opts__ N/A transport local A False N/A N/A N/A N/A patch object N/A N/A N/A salt utils event MinionEvent fire_event side_effect N/A Exception foo N/A N/A N/A N/A self assertFalse N/A N/A event fire_master data tag N/A N/A patch salt.crypt.SAuth N/A patch salt.transport.Channel.factory test_fire N/A N/A self salt_utils_event N/A N/A N/A 
        Test to fire an event on the local minion event bus.
        Data must be formed as a dict.
         N/A N/A N/A patch object salt_utils_event get_event N/A N/A N/A N/A self assertFalse N/A N/A event fire data tag N/A N/A N/A patch dict N/A event __opts__ N/A sock_dir transport True True N/A N/A N/A N/A patch object salt_utils_event get_event mock N/A N/A N/A mock fire_event N/A MagicMock return_value True N/A N/A N/A self assertTrue N/A N/A event fire data tag N/A N/A patch salt.utils.event test_send N/A N/A self N/A N/A N/A 
        Test for Send an event to the Salt Master
         N/A N/A N/A patch object event fire_master return_value B N/A N/A N/A N/A self assertEqual N/A N/A event send tag B 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 EventTestCase needs_daemon False