def test_executable_file_in_path(self): # Should exist in any POSIX shell, which is what we have in OSX self.assertTrue(executable_is_in_path('ls'))
def test_executable_file_in_path(self): # Should exist in any POSIX shell self.assertTrue(executable_is_in_path('ls'))
def test_executable_file_in_path(self): # Should exist in any POSIX shell, which is what we have in OSX result = executable_is_in_path('ls') assert result == "/bin/ls" # Any UNIX should respect this.
def test_executable_file_in_path(self): # Should exist in any POSIX shell, which is what we have in OSX result = executable_is_in_path('ls') assert os.access(result, os.X_OK)