def __lockonlyB(self):
    app = "testapp"
    key = "rootb"
    txid = self.zk.get_transaction_id(app)
    self.assertTrue(txid > 0)
    while not self.zk.acquire_lock(app, txid, key):
      time.sleep(0.1)
dataset/ETHPy150Open AppScale/appscale/AppDB/test/functional/test_zktransaction.py/TestZKTransaction.__lockonlyB/original