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 Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Call AttributeLoad Str attr NameLoad Dict NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Call AttributeLoad Str attr NameLoad NameLoad Dict NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Call AttributeLoad Str attr NameLoad NameLoad Dict Str NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Call AttributeLoad Str attr NameLoad NameLoad Dict NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Call AttributeLoad Str attr NameLoad Dict NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Call AttributeLoad Str attr NameLoad Dict NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Call AttributeLoad Str attr NameLoad Dict Str NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Call AttributeLoad Str attr NameLoad Dict NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad 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 
unit tests for the alias state
 __future__ absolute_import salttesting skipIf TestCase salttesting.helpers ensure_in_syspath salttesting.mock NO_MOCK NO_MOCK_REASON MagicMock patch N/A N/A ensure_in_syspath ../../ salt.states alias N/A N/A alias __opts__ N/A N/A N/A alias __salt__ N/A AliasTest N/A TestCase N/A N/A 
    Validate the alias state
     test_present_has_target N/A N/A self N/A N/A N/A 
        test alias.present has target already
         N/A name saltdude N/A target dude@saltstack.com N/A ret N/A comment changes name result N/A N/A Alias {0} already present format name N/A name True N/A has_target N/A MagicMock return_value True N/A N/A N/A patch dict N/A alias __salt__ N/A aliases.has_target has_target N/A N/A N/A N/A self assertEqual N/A N/A alias present name target ret N/A test_present_has_not_target_test N/A N/A self N/A N/A N/A 
        test alias.present has't got target yet test mode
         N/A name saltdude N/A target dude@saltstack.com N/A ret N/A comment changes name result N/A N/A Alias {0} -> {1} is set to be added format name target N/A name None N/A has_target N/A MagicMock return_value False N/A N/A N/A patch dict N/A alias __salt__ N/A aliases.has_target has_target N/A N/A N/A N/A patch dict N/A alias __opts__ N/A test True N/A N/A N/A N/A self assertEqual N/A N/A alias present name target ret N/A test_present_set_target N/A N/A self N/A N/A N/A 
        test alias.present set target
         N/A name saltdude N/A target dude@saltstack.com N/A ret N/A comment changes name result N/A N/A Set email alias {0} -> {1} format name target N/A alias name name True N/A has_target N/A MagicMock return_value False N/A set_target N/A MagicMock return_value True N/A N/A N/A patch dict N/A alias __salt__ N/A aliases.has_target has_target N/A N/A N/A N/A patch dict N/A alias __opts__ N/A test False N/A N/A N/A N/A patch dict N/A alias __salt__ N/A aliases.set_target set_target N/A N/A N/A N/A self assertEqual N/A N/A alias present name target ret N/A test_present_set_target_failed N/A N/A self N/A N/A N/A 
        test alias.present set target failure
         N/A name saltdude N/A target dude@saltstack.com N/A ret N/A comment changes name result N/A N/A Failed to set alias {0} -> {1} format name target N/A name False N/A has_target N/A MagicMock return_value False N/A set_target N/A MagicMock return_value False N/A N/A N/A patch dict N/A alias __salt__ N/A aliases.has_target has_target N/A N/A N/A N/A patch dict N/A alias __opts__ N/A test False N/A N/A N/A N/A patch dict N/A alias __salt__ N/A aliases.set_target set_target N/A N/A N/A N/A self assertEqual N/A N/A alias present name target ret N/A test_absent_already_gone N/A N/A self N/A N/A N/A 
        test alias.absent already gone
         N/A name saltdude N/A target dude@saltstack.com N/A ret N/A comment changes name result N/A N/A Alias {0} already absent format name N/A name True N/A get_target N/A MagicMock return_value False N/A N/A N/A patch dict N/A alias __salt__ N/A aliases.get_target get_target N/A N/A N/A N/A self assertEqual N/A N/A alias absent name ret N/A test_absent_not_gone_test N/A N/A self N/A N/A N/A 
        test alias.absent already gone test mode
         N/A name saltdude N/A target dude@saltstack.com N/A ret N/A comment changes name result N/A N/A Alias {0} is set to be removed format name N/A name None N/A get_target N/A MagicMock return_value True N/A N/A N/A patch dict N/A alias __salt__ N/A aliases.get_target get_target N/A N/A N/A N/A patch dict N/A alias __opts__ N/A test True N/A N/A N/A N/A self assertEqual N/A N/A alias absent name ret N/A test_absent_rm_alias N/A N/A self N/A N/A N/A 
        test alias.absent remove alias
         N/A name saltdude N/A target dude@saltstack.com N/A ret N/A comment changes name result N/A N/A Removed alias {0} format name N/A alias name name True N/A get_target N/A MagicMock return_value True N/A rm_alias N/A MagicMock return_value True N/A N/A N/A patch dict N/A alias __salt__ N/A aliases.get_target get_target N/A N/A N/A N/A patch dict N/A alias __opts__ N/A test False N/A N/A N/A N/A patch dict N/A alias __salt__ N/A aliases.rm_alias rm_alias N/A N/A N/A N/A self assertEqual N/A N/A alias absent name ret N/A test_absent_rm_alias_failed N/A N/A self N/A N/A N/A 
        test alias.absent remove alias failure
         N/A name saltdude N/A target dude@saltstack.com N/A ret N/A comment changes name result N/A N/A Failed to remove alias {0} format name N/A name False N/A get_target N/A MagicMock return_value True N/A rm_alias N/A MagicMock return_value False N/A N/A N/A patch dict N/A alias __salt__ N/A aliases.get_target get_target N/A N/A N/A N/A patch dict N/A alias __opts__ N/A test False N/A N/A N/A N/A patch dict N/A alias __salt__ N/A aliases.rm_alias rm_alias N/A N/A N/A N/A self assertEqual N/A N/A alias absent name 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 AliasTest needs_daemon False