equal
deleted
inserted
replaced
376 with self.admin_access.client_cnx() as cnx: |
376 with self.admin_access.client_cnx() as cnx: |
377 c = cnx.create_entity('Card', title=u'hop', content=u'hop') |
377 c = cnx.create_entity('Card', title=u'hop', content=u'hop') |
378 txuuid = cnx.commit() |
378 txuuid = cnx.commit() |
379 p = cnx.create_entity('Personne', nom=u'louis', fiche=c) |
379 p = cnx.create_entity('Personne', nom=u'louis', fiche=c) |
380 cnx.commit() |
380 cnx.commit() |
381 integrityerror = self.repo.sources_by_uri['system'].dbhelper.dbapi_module.IntegrityError |
381 integrityerror = self.repo.system_source.dbhelper.dbapi_module.IntegrityError |
382 with self.assertRaises(integrityerror): |
382 with self.assertRaises(integrityerror): |
383 cnx.undo_transaction(txuuid) |
383 cnx.undo_transaction(txuuid) |
384 |
384 |
385 |
385 |
386 def test_undo_inline_rel_add_ko(self): |
386 def test_undo_inline_rel_add_ko(self): |