

def test_reserve_background_thread_not_started(self):
    inst = instance.Instance(self.request_data, 'name', self.proxy, max_concurrent_requests=5, max_background_threads=1)
    self.mox.ReplayAll()
    self.assertEqual(1, self.remaining_background_thread_capacity)
    self.assertRaises(instance.CannotAcceptRequests, inst.reserve_background_thread)
    self.mox.VerifyAll()
    self.assertEqual(1, inst.remaining_background_thread_capacity)

dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/instance_test.py TestInstance.test_reserve_background_thread_not_started/VarMisuse@49/66 `inst`->`self`