def test_lock1000(self):
    app = "testapp"
    key = "root"
    for ii in range(1,1000):
      txid = self.zk.get_transaction_id(app)
      self.assertTrue(txid > 0)
      ret = self.zk.acquire_lock(app, txid, key)
      self.assertTrue(ret)
      ret = self.zk.release_lock(app, txid)
      self.assertTrue(ret)
dataset/ETHPy150Open AppScale/appscale/AppDB/test/functional/test_zktransaction.py/TestZKTransaction.test_lock1000/original