'Testing whether the process checker returns true when another process is running.'

def test_other_instance_running(self):

    self.process = Process(target=process_dummy_function)
    self.process.start()
    self.create_lock_file_with_pid(self.process.pid)
    process_checker = ProcessChecker(state_directory=self.state_dir)
    self.assertTrue(process_checker.is_pid_running(self.process.pid))
    self.assertTrue(process_checker.already_running)
