示例#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
 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)