Products.ERP5Security.test.testERP5Security: Rollback when creation raises.
For realism: the goal of this exception is to prevent duplicate, and it relies on the exception triggering a rollback in the transaction manager (like any transaction error). Also, use "any()" rather than building entire lists just to check for non- emptiness.
Showing
Please register or sign in to comment