Commit e3334ea6 authored by Jérome Perrin's avatar Jérome Perrin

Check that changes in user assignements are reflected immediatly

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15947 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bd0d6de7
...@@ -196,6 +196,18 @@ class TestUserManagement(ERP5TypeTestCase): ...@@ -196,6 +196,18 @@ class TestUserManagement(ERP5TypeTestCase):
self.assertNotEquals(person_module[changed['new_id']].getReference(), self.assertNotEquals(person_module[changed['new_id']].getReference(),
person_module[changed['id']].getReference()) person_module[changed['id']].getReference())
def test_OpenningAssignmentClearCache(self):
"""Openning an assignment for a person clear the cache automatically."""
pers = self._makePerson(reference='the_user', password='secret',
open_assignment=0)
self._assertUserDoesNotExists('the_user', 'secret')
assi = pers.newContent(portal_type='Assignment')
assi.open()
self._assertUserExists('the_user', 'secret')
assi.close()
self._assertUserDoesNotExists('the_user', 'secret')
class TestLocalRoleManagement(ERP5TypeTestCase): class TestLocalRoleManagement(ERP5TypeTestCase):
"""Tests Local Role Management with ERP5Security. """Tests Local Role Management with ERP5Security.
......
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