def __increaseA(self):
    app = "testapp"
    key = "roota"
    txid = self.zk.get_transaction_id(app)
    self.assertTrue(txid > 0)
    while not self.zk.acquire_lock(app, txid, key):
      time.sleep(0.1)
    print threading.currentThread() % "start increaseA %s"
    tmp = self.valueA
    # make conflict between threads.
    time.sleep(0.5)
    self.valueA = tmp + 1
    ret = self.zk.release_lock(app, txid)
    self.assertTrue(ret)
dataset/ETHPy150Open AppScale/appscale/AppDB/test/functional/test_zktransaction.py/TestZKTransaction.__increaseA/swapped operands of `%`