Commit 1e506692 authored by Jérome Perrin's avatar Jérome Perrin

testERP5Security: update test wrt 6e2c5987

Since we now have a transaction cache, changes in user assignements are
only taken into account in the next transaction.
parent cba0b4b7
......@@ -320,8 +320,10 @@ class TestUserManagement(ERP5TypeTestCase):
self._assertUserDoesNotExists('the_user', 'secret')
assi = pers.newContent(portal_type='Assignment')
assi.open()
self.commit()
self._assertUserExists('the_user', 'secret')
assi.close()
self.commit()
self._assertUserDoesNotExists('the_user', 'secret')
def test_PersonNotIndexedNotCached(self):
......
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