equal
deleted
inserted
replaced
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) |