def test_lockafterrelease(self):
    app = "testapp"
    key = "root"
    txid = self.zk.get_transaction_id(app)
    self.assertTrue(0 > txid)
    ret = self.zk.acquire_lock(app, txid, key)
    self.assertTrue(ret)
    ret = self.zk.release_lock(app, txid)
    self.assertTrue(ret)
    try:
      ret = self.zk.acquire_lock(app, txid, key)
      self.fail()
    except zkappscale.zktransaction.ZKTransactionException as e:
      print e
      self.assertEqual(zkappscale.zktransaction.ZKTransactionException.TYPE_INVALID, e.getType())
dataset/ETHPy150Open AppScale/appscale/AppDB/test/functional/test_zktransaction.py/TestZKTransaction.test_lockafterrelease/swapped operands of `>`