[Erp5-report] r21019 - /erp5/trunk/products/ERP5/tests/testAccounting.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon May 19 17:51:26 CEST 2008


Author: jerome
Date: Mon May 19 17:51:25 2008
New Revision: 21019

URL: http://svn.erp5.org?rev=21019&view=rev
Log:
asserts that current user does not have Modify portal content permission


Modified:
    erp5/trunk/products/ERP5/tests/testAccounting.py

Modified: erp5/trunk/products/ERP5/tests/testAccounting.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAccounting.py?rev=21019&r1=21018&r2=21019&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAccounting.py (original)
+++ erp5/trunk/products/ERP5/tests/testAccounting.py Mon May 19 17:51:25 2008
@@ -1754,6 +1754,8 @@
               stop_date=DateTime(2001, 01, 01))
     accounting_transaction.manage_permission('Modify portal content',
                                              roles=['Manager'], acquire=0)
+    self.assertFalse(_checkPermission('Modify portal content',
+                                      accounting_transaction))
     accounting_transaction.stop()
     self.assertEquals('code-2001-1', accounting_transaction.getSourceReference())
 




More information about the Erp5-report mailing list