diff --git a/tests/test_utils/test_processes.py b/tests/test_utils/test_processes.py index 2685780..36090cf 100644 --- a/tests/test_utils/test_processes.py +++ b/tests/test_utils/test_processes.py @@ -33,3 +33,14 @@ class TerminateProcessesTestCase(BaseTestCase): self.assertIsNone(still_alive) for proc in created_processes: self.assertEqual(proc.poll(), 0) + + +class RunningProcessTestCase(BaseTestCase): + def test_current_process_running(self): + self.assertTrue(processes.is_process_running(os.getpid())) + + def test_root_process_running(self): + self.assertTrue(processes.is_process_running(processes.get_root_process().pid)) + + def test_impossible_running_process(self): + self.assertFalse(processes.is_process_running(2938420983094892))