コード例 #1
0
ファイル: test_isapprunning.py プロジェクト: nealdav/munki
 def test_app_name_with_dot_app_no_match(self, ps_mock):
     print("Testing isAppRunning with name plus .app match...")
     self.assertEqual(munkicommon.isAppRunning('BonziBUDDY'), False)
コード例 #2
0
ファイル: test_isapprunning.py プロジェクト: nealdav/munki
 def test_app_by_executable_name_no_match(self, ps_mock):
     print("Testing isAppRunning with executable name no matches...")
     self.assertEqual(munkicommon.isAppRunning('bonzi'), False)
コード例 #3
0
ファイル: test_isapprunning.py プロジェクト: nealdav/munki
 def test_app_name_with_dot_app_match(self, ps_mock):
     print("Testing isAppRunning with name plus .app match...")
     self.assertEqual(munkicommon.isAppRunning('Firefox'), True)
コード例 #4
0
ファイル: test_isapprunning.py プロジェクト: nealdav/munki
 def test_app_by_filename_no_match(self, ps_mock):
     print("Testing isAppRunning with file name no matches...")
     self.assertEqual(munkicommon.isAppRunning('BonziBUDDY.app'), False)
コード例 #5
0
ファイル: test_isapprunning.py プロジェクト: nealdav/munki
 def test_app_by_executable_name_match(self, ps_mock):
     print("Testing isAppRunning with executable name match...")
     self.assertEqual(munkicommon.isAppRunning('firefox'), True)
コード例 #6
0
ファイル: test_isapprunning.py プロジェクト: nealdav/munki
 def test_app_with_exact_path_no_match(self, ps_mock):
     print("Testing isAppRunning with exact path no matches...")
     self.assertEqual(munkicommon.isAppRunning('/usr/local/bin/bonzi'),
                      False)
コード例 #7
0
ファイル: test_isapprunning.py プロジェクト: nealdav/munki
 def test_app_by_filename_match(self, ps_mock):
     print("Testing isAppRunning with file name match...")
     self.assertEqual(munkicommon.isAppRunning('Firefox.app'), True)
コード例 #8
0
 def test_app_name_with_dot_app_no_match(self, ps_mock):
     print("Testing isAppRunning with name plus .app match...")
     self.assertEqual(munkicommon.isAppRunning("BonziBUDDY"), False)
コード例 #9
0
ファイル: test_isapprunning.py プロジェクト: nealdav/munki
 def test_app_with_exact_path_match(self, ps_mock):
     print("Testing isAppRunning with exact path match...")
     self.assertEqual(
         munkicommon.isAppRunning(
             '/Applications/Firefox.app/Contents/MacOS/firefox'), True)
コード例 #10
0
 def test_app_by_executable_name_no_match(self, ps_mock):
     print("Testing isAppRunning with executable name no matches...")
     self.assertEqual(munkicommon.isAppRunning("bonzi"), False)
コード例 #11
0
 def test_app_name_with_dot_app_match(self, ps_mock):
     print("Testing isAppRunning with name plus .app match...")
     self.assertEqual(munkicommon.isAppRunning("Firefox"), True)
コード例 #12
0
 def test_app_by_executable_name_match(self, ps_mock):
     print("Testing isAppRunning with executable name match...")
     self.assertEqual(munkicommon.isAppRunning("firefox"), True)
コード例 #13
0
 def test_app_by_filename_no_match(self, ps_mock):
     print("Testing isAppRunning with file name no matches...")
     self.assertEqual(munkicommon.isAppRunning("BonziBUDDY.app"), False)
コード例 #14
0
 def test_app_by_filename_match(self, ps_mock):
     print("Testing isAppRunning with file name match...")
     self.assertEqual(munkicommon.isAppRunning("Firefox.app"), True)
コード例 #15
0
 def test_app_with_exact_path_no_match(self, ps_mock):
     print("Testing isAppRunning with exact path no matches...")
     self.assertEqual(munkicommon.isAppRunning("/usr/local/bin/bonzi"), False)
コード例 #16
0
 def test_app_with_exact_path_match(self, ps_mock):
     print("Testing isAppRunning with exact path match...")
     self.assertEqual(munkicommon.isAppRunning("/Applications/Firefox.app/Contents/MacOS/firefox"), True)