コード例 #1
0
 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'))
コード例 #2
0
 def test_executable_file_in_path(self):
     # Should exist in any POSIX shell
     self.assertTrue(executable_is_in_path('ls'))
コード例 #3
0
 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.
コード例 #4
0
ファイル: linux.py プロジェクト: tacaswell/VisTrails
 def test_executable_file_in_path(self):
     # Should exist in any POSIX shell
     self.assertTrue(executable_is_in_path('ls'))
コード例 #5
0
 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)