

def test_quit_shutdown(self):
    inst = instance.Instance(self.request_data, 'name', self.proxy, max_concurrent_requests=5)
    self.mox.StubOutWithMock(self._condition, 'notify_all')
    inst._num_outstanding_requests = 1
    self.proxy.start()
    self.mox.ReplayAll()
    inst.start()
    inst.quit(expect_shutdown=True)
    self.mox.VerifyAll()
    self.assertTrue(inst._expecting_shutdown_request)
    self.assertFalse(inst._quitting)

dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/instance_test.py TestInstance.test_quit_shutdown/VarMisuse@37/50 `inst`->`self`