Beispiel #1
0
 def test_app_name_with_dot_app_match(self, ps_mock):
     print("Testing isAppRunning with name plus .app match...")
     self.assertEqual(
         processes.is_app_running('Firefox'),
         True
     )
Beispiel #2
0
 def test_app_by_executable_name_match(self, ps_mock):
     print("Testing isAppRunning with executable name match...")
     self.assertEqual(
         processes.is_app_running('firefox'),
         True
     )
Beispiel #3
0
 def test_app_by_executable_name_no_match(self, ps_mock):
     print("Testing isAppRunning with executable name no matches...")
     self.assertEqual(
         processes.is_app_running('bonzi'),
         False
     )
Beispiel #4
0
 def test_app_by_filename_no_match(self, ps_mock):
     print("Testing isAppRunning with file name no matches...")
     self.assertEqual(
         processes.is_app_running('BonziBUDDY.app'),
         False
     )
Beispiel #5
0
 def test_app_by_filename_match(self, ps_mock):
     print("Testing isAppRunning with file name match...")
     self.assertEqual(
         processes.is_app_running('Firefox.app'),
         True
     )
Beispiel #6
0
 def test_app_with_exact_path_no_match(self, ps_mock):
     print("Testing isAppRunning with exact path no matches...")
     self.assertEqual(
         processes.is_app_running('/usr/local/bin/bonzi'),
         False
     )
Beispiel #7
0
 def test_app_with_exact_path_match(self, ps_mock):
     print("Testing isAppRunning with exact path match...")
     self.assertEqual(
         processes.is_app_running('/Applications/Firefox.app/Contents/MacOS/firefox'),
         True
     )
Beispiel #8
0
 def test_app_name_with_dot_app_no_match(self, ps_mock):
     print("Testing isAppRunning with name plus .app match...")
     self.assertEqual(
         processes.is_app_running('BonziBUDDY'),
         False
     )