server/test/unittest_undo.py
branchstable
changeset 7424 2c72bfbbf1a3
parent 7241 65d65da31356
child 7429 20ef21926774
child 7530 15178bf89fb6
equal deleted inserted replaced
7422:9948cdd21b36 7424:2c72bfbbf1a3
   167                           ['users'])
   167                           ['users'])
   168         self.assertEqual([et.name for et in toto.related('is', entities=True)],
   168         self.assertEqual([et.name for et in toto.related('is', entities=True)],
   169                           ['CWUser'])
   169                           ['CWUser'])
   170         self.assertEqual([et.name for et in toto.is_instance_of],
   170         self.assertEqual([et.name for et in toto.is_instance_of],
   171                           ['CWUser'])
   171                           ['CWUser'])
   172         # undoing shouldn't be visble in undoable transaction, and the undoed
   172         # undoing shouldn't be visble in undoable transaction, and the undone
   173         # transaction should be removed
   173         # transaction should be removed
   174         txs = self.cnx.undoable_transactions()
   174         txs = self.cnx.undoable_transactions()
   175         self.assertEqual(len(txs), 2)
   175         self.assertEqual(len(txs), 2)
   176         self.assertRaises(NoSuchTransaction,
   176         self.assertRaises(NoSuchTransaction,
   177                           self.cnx.transaction_info, txuuid)
   177                           self.cnx.transaction_info, txuuid)