Commit 59c51ebf authored by Vincent Pelletier's avatar Vincent Pelletier

Improve test_60_OwnerIndexing to also check that Owner role does not cause...

Improve test_60_OwnerIndexing to also check that Owner role does not cause insertions to roles_and_users table.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19284 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e5d4da15
......@@ -2021,6 +2021,9 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment