def test_run_stop_command(self):
    open(os.path.join(APP_PATH, "pid/master/2968.pid"), "w")
    open(os.path.join(APP_PATH, "pid/master/9847.pid"), "w")

    with patch('os.kill'):
      self.manage.run(self.opt, command_name = 'stop')
      self.assertEquals(2, os.kill.call_count)
      self.assertTrue(((9847, 15), {}) in os.kill.call_args_list)
      self.assertTrue(((2968, 15), {}) in os.kill.call_args_list)
dataset/ETHPy150Open daltonmatos/wsgid/tests/unit/commands_test.py/CommandManageTest.test_run_stop_command/original