

def test_wait_with_capacity(self):
    inst = instance.Instance(self.request_data, 'name', self.proxy, max_concurrent_requests=1)
    inst._started = True
    self.mox.StubOutWithMock(self._condition, 'wait')
    self.mox.stubs.Set(time, 'time', (lambda : 0))
    self.mox.ReplayAll()
    self.assertTrue(inst.wait(1))
    self.mox.VerifyAll()

dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/instance_test.py TestInstance.test_wait_with_capacity/VarMisuse@43/57 `inst`->`self`