示例#1
0
 def testLock(self):
     txn = Transaction(self.getClientUUID(), self.getNextTID())
     self.assertFalse(txn.isLocked())
     txn.lock()
     self.assertTrue(txn.isLocked())
     # disallow lock more than once
     self.assertRaises(AssertionError, txn.lock)