[Erp5-report] r19284 - /erp5/trunk/products/ERP5Catalog/tests/testERP5Catalog.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 12 18:06:15 CET 2008
Author: vincent
Date: Tue Feb 12 18:06:12 2008
New Revision: 19284
URL: http://svn.erp5.org?rev=19284&view=rev
Log:
Improve test_60_OwnerIndexing to also check that Owner role does not cause insertions to roles_and_users table.
Modified:
erp5/trunk/products/ERP5Catalog/tests/testERP5Catalog.py
Modified: erp5/trunk/products/ERP5Catalog/tests/testERP5Catalog.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Catalog/tests/testERP5Catalog.py?rev=19284&r1=19283&r2=19284&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Catalog/tests/testERP5Catalog.py (original)
+++ erp5/trunk/products/ERP5Catalog/tests/testERP5Catalog.py Tue Feb 12 18:06:12 2008
@@ -2021,6 +2021,9 @@
self.tic()
result = sql_connection.manage_test(sql % obj.getUid())
self.assertSameSet(['super_owner'], [x.owner for x in result])
+ # Also, check that it is not cataloged in roles_and_users
+ result = sql_connection.manage_test('SELECT * FROM roles_and_users WHERE allowedRolesAndUsers IN ("user:super_owner", "user:super_owner:Owner")')
+ self.assertEqual(len(result), 0, repr(result.dictionaries()))
# Check that Owner is not catalogued when he can view the
# object because he has another role
More information about the Erp5-report
mailing list