def test_cancel_deeper(self):
        manager = self.manager
        # Test goes deeper than needed when deferring to
        # external managers. Ensure the PID dies when killed
        # and subsequent jobs never run.

        pid1 = os.path.join(self.staging_directory, "pid1")
        pid2 = os.path.join(self.staging_directory, "pid2")
        command1 = self._python_to_command(pid1 % CANCEL_TEST_PROGRAM)
        command2 = self._python_to_command(CANCEL_TEST_PROGRAM % pid2)

        job1_id = manager.setup_job("124", "tool1", "1.0.0")
        job2_id = manager.setup_job("125", "tool1", "1.0.0")
        manager.launch(job1_id, command1)
        manager.launch(job2_id, command2)
        time.sleep(0.05)
        assert os.path.exists(pid1)
        assert not os.path.exists(pid2)
        manager.kill(job2_id)
        manager.kill(job1_id)
        self._assert_status_becomes_cancelled(job1_id, manager)
        self._assert_status_becomes_cancelled(job2_id, manager)
        time.sleep(0.05)
        assert not os.path.exists(pid2)
dataset/ETHPy150Open galaxyproject/pulsar/test/manager_queued_test.py/PythonQueuedManagerTest.test_cancel_deeper/swapped operands of `%`