Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias Expr Call NameLoad Str ImportFrom alias Import alias identifier 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 defaults body Expr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Num body Assign AttributeStore NameLoad attr Call NameLoad With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Num body Assign AttributeStore NameLoad attr Call NameLoad With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Num body Assign AttributeStore NameLoad attr Call NameLoad With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Num body Assign AttributeStore NameLoad attr Call NameLoad With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Num body Assign AttributeStore NameLoad attr Call NameLoad With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Num body Assign AttributeStore NameLoad attr Call NameLoad With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Num body Assign AttributeStore NameLoad attr Call NameLoad With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Num body With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Num body Assign AttributeStore NameLoad attr Call NameLoad With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str keyword Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict 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:`Rupesh Tare <rupesht@saltstack.com>`
 __future__ absolute_import salttesting TestCase skipIf salttesting.mock MagicMock patch NO_MOCK NO_MOCK_REASON salttesting.helpers ensure_in_syspath N/A N/A ensure_in_syspath ../../ salt.modules match N/A salt.ext.six.moves.builtins __builtin__ N/A N/A match __grains__ N/A N/A N/A match __salt__ N/A N/A N/A match __opts__ N/A N/A N/A match __pillar__ N/A MatchTestCase N/A TestCase N/A N/A 
    Test cases for salt.modules.match
     test_compound N/A N/A self mock_matcher N/A N/A N/A 
        Test for Return True if the minion ID matches the given compound target
         N/A N/A N/A patch dict N/A match __grains__ N/A id 101 N/A N/A N/A mock_matcher side_effect N/A MagicMock N/A N/A N/A patch object mock_matcher compound_match N/A MagicMock N/A N/A N/A N/A self assertTrue N/A N/A match compound tgt N/A N/A mock_matcher side_effect N/A MagicMock return_value B N/A N/A N/A self assertFalse N/A N/A match compound tgt N/A N/A patch salt.minion.Matcher test_ipcidr N/A N/A self mock_matcher N/A N/A N/A 
        Test for Return True if the minion matches the given ipcidr target
         N/A N/A N/A patch dict N/A match __grains__ N/A id 101 N/A N/A N/A mock_matcher side_effect N/A MagicMock N/A N/A N/A patch object mock_matcher ipcidr_match N/A MagicMock N/A N/A N/A N/A self assertTrue N/A N/A match ipcidr tgt N/A N/A mock_matcher side_effect N/A MagicMock return_value B N/A N/A N/A self assertFalse N/A N/A match ipcidr tgt N/A N/A patch salt.minion.Matcher test_pillar N/A N/A self mock_matcher N/A N/A N/A 
        Test for Return True if the minion matches the given pillar target.
         N/A N/A N/A patch dict N/A match __grains__ N/A id 101 N/A N/A N/A mock_matcher side_effect N/A MagicMock N/A N/A N/A patch object mock_matcher pillar_match N/A MagicMock N/A N/A N/A N/A self assertTrue N/A N/A match pillar tgt N/A N/A mock_matcher side_effect N/A MagicMock return_value B N/A N/A N/A self assertFalse N/A N/A match pillar tgt N/A N/A patch salt.minion.Matcher test_data N/A N/A self mock_matcher N/A N/A N/A 
        Test for Return True if the minion matches the given data target
         N/A N/A N/A patch dict N/A match __grains__ N/A id 101 N/A N/A N/A mock_matcher side_effect N/A MagicMock N/A N/A N/A patch object mock_matcher data_match N/A MagicMock N/A N/A N/A N/A self assertTrue N/A N/A match data tgt N/A N/A mock_matcher side_effect N/A MagicMock return_value B N/A N/A N/A self assertFalse N/A N/A match data tgt N/A N/A patch salt.minion.Matcher test_grain_pcre N/A N/A self mock_matcher N/A N/A N/A 
        Test for Return True if the minion matches the given grain_pcre target
         N/A N/A N/A patch dict N/A match __grains__ N/A id 101 N/A N/A N/A mock_matcher side_effect N/A MagicMock N/A N/A N/A patch object mock_matcher grain_pcre_match N/A MagicMock N/A N/A N/A N/A self assertTrue N/A N/A match grain_pcre tgt N/A N/A mock_matcher side_effect N/A MagicMock return_value B N/A N/A N/A self assertFalse N/A N/A match grain_pcre tgt N/A N/A patch salt.minion.Matcher test_grain N/A N/A self mock_matcher N/A N/A N/A 
        Test for Return True if the minion matches the given grain target
         N/A N/A N/A patch dict N/A match __grains__ N/A id 101 N/A N/A N/A mock_matcher side_effect N/A MagicMock N/A N/A N/A patch object mock_matcher grain_match N/A MagicMock N/A N/A N/A N/A self assertTrue N/A N/A match grain tgt N/A N/A mock_matcher side_effect N/A MagicMock return_value B N/A N/A N/A self assertFalse N/A N/A match grain tgt N/A N/A patch salt.minion.Matcher test_list_ N/A N/A self mock_matcher N/A N/A N/A 
        Test for Return True if the minion ID matches the given list target
         N/A N/A N/A patch dict N/A match __grains__ N/A id 101 N/A N/A N/A mock_matcher side_effect N/A MagicMock N/A N/A N/A patch object mock_matcher list_match N/A MagicMock N/A N/A N/A N/A self assertTrue N/A N/A match list_ tgt N/A N/A mock_matcher side_effect N/A MagicMock return_value B N/A N/A N/A self assertFalse N/A N/A match list_ tgt N/A N/A patch salt.minion.Matcher test_pcre N/A N/A self mock_matcher N/A N/A N/A 
        Test for Return True if the minion ID matches the given pcre target
         N/A N/A mock_matcher side_effect N/A MagicMock N/A N/A N/A patch dict N/A match __grains__ N/A id 101 N/A N/A N/A N/A patch object mock_matcher pcre_match N/A MagicMock N/A N/A N/A N/A self assertTrue N/A N/A match pcre tgt N/A N/A mock_matcher side_effect N/A MagicMock return_value B N/A N/A N/A patch dict N/A match __grains__ N/A id 101 N/A N/A N/A N/A self assertFalse N/A N/A match pcre tgt N/A N/A patch salt.minion.Matcher test_glob N/A N/A self mock_matcher N/A N/A N/A 
        Test for Return True if the minion ID matches the given glob target
         N/A N/A N/A patch dict N/A match __grains__ N/A id 101 N/A N/A N/A mock_matcher side_effect N/A MagicMock N/A N/A N/A patch object mock_matcher glob_match N/A MagicMock N/A N/A N/A N/A self assertTrue N/A N/A match glob tgt N/A N/A mock_matcher side_effect N/A MagicMock return_value B N/A N/A N/A self assertFalse N/A N/A match glob tgt N/A N/A patch salt.minion.Matcher test_filter_by N/A N/A self N/A N/A N/A 
        Test for Return the first match in a dictionary of target patterns
         N/A N/A N/A patch object __builtin__ dict N/A MagicMock N/A N/A N/A N/A self assertEqual N/A N/A match filter_by N/A key value minion_id 101 value N/A N/A N/A self assertEqual N/A N/A match filter_by N/A key value value N/A N/A N/A self assertEqual N/A N/A match filter_by N/A None 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 MatchTestCase needs_daemon False