def test_kill_already_dead_pid(self):
    open(os.path.join(APP_PATH, "pid/worker/3847.pid"), "w")
    open(os.path.join(APP_PATH, "pid/worker/4857.pid"), "w")

    with patch('os.kill'):
      os.kill = Mock(side_effect=OSError("No such process"))
      self.manage.run(self.opt, command_name = 'restart')
      self.assertEquals(2, os.kill.call_count)
      self.assertTrue(os.kill.call_args_list in ((3847, 15), {}))
      self.assertTrue(((4857, 15), {}) in os.kill.call_args_list)
dataset/ETHPy150Open daltonmatos/wsgid/tests/unit/commands_test.py/CommandManageTest.test_kill_already_dead_pid/swapped operands of `in`