Module ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias Expr Call NameLoad Str Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr CompareIs Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list Call NameLoad Str Lambda arguments args NameParam defaults NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Call NameLoad Str Lambda arguments args NameParam defaults NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str body With Call NameLoad Str Lambda arguments args defaults NameLoad body With Call NameLoad Str Lambda arguments args NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str body With Call NameLoad Str Lambda arguments args defaults NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str Str body With Call NameLoad Str Lambda arguments args defaults NameLoad body With Call NameLoad Str Lambda arguments args NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list Call NameLoad Str decorator_list Call NameLoad NameLoad NameLoad If CompareEq NameLoad Str body ImportFrom alias Expr Call NameLoad NameLoad keyword NameLoad
N/A __future__ absolute_import N/A os salttesting skipIf salttesting.helpers ensure_in_syspath salttesting.mock NO_MOCK NO_MOCK_REASON patch N/A N/A ensure_in_syspath ../../ N/A integration N/A salt.utils TestWhich N/A N/A integration TestCase N/A N/A 
    Tests salt.utils.which function to ensure that it returns True as
    expected.
     test_missing_binary_in_linux N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A N/A N/A N/A salt utils which this-binary-does-not-exist None N/A N/A patch salt.utils.which N/A N/A N/A exe N/A None test_existing_binary_in_linux N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A N/A N/A salt utils which this-binary-exists-under-linux N/A N/A patch salt.utils.which N/A N/A N/A exe N/A exe test_existing_binary_in_windows N/A N/A self osaccess N/A N/A N/A N/A osaccess side_effect N/A False False True N/A N/A N/A patch dict N/A os environ N/A PATH /bin N/A N/A N/A patch salt.utils.is_windows N/A N/A N/A N/A True N/A N/A N/A patch os.path.isfile N/A N/A N/A x N/A True N/A N/A N/A N/A self assertEqual N/A N/A N/A salt utils which this-binary-exists-under-windows /bin/this-binary-exists-under-windows.EXE N/A N/A patch os.access test_missing_binary_in_windows N/A N/A self osaccess N/A N/A N/A N/A osaccess side_effect N/A False False False False False False N/A N/A N/A patch dict N/A os environ N/A PATH /bin N/A N/A N/A patch salt.utils.is_windows N/A N/A N/A N/A True N/A N/A N/A N/A self assertEqual N/A N/A N/A salt utils which this-binary-is-missing-in-windows.exe None N/A N/A patch os.access test_existing_binary_in_windows_pathext N/A N/A self osaccess N/A N/A N/A N/A osaccess side_effect N/A False False False False False True N/A N/A N/A patch dict N/A os environ N/A PATH PATHEXT /bin .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY N/A N/A N/A patch salt.utils.is_windows N/A N/A N/A N/A True N/A N/A N/A patch os.path.isfile N/A N/A N/A x N/A True N/A N/A N/A N/A self assertEqual N/A N/A N/A salt utils which this-binary-exists-under-windows /bin/this-binary-exists-under-windows.CMD N/A N/A patch os.access 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 TestWhich needs_daemon False