Commit 083c1a81 authored by Łukasz Nowak's avatar Łukasz Nowak

- check that deleted Person objects are not providing valid logins anymore


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29510 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3a3d906e
......@@ -327,6 +327,15 @@ class TestUserManagement(ERP5TypeTestCase):
assignment_stop_date=date-1)
self._assertUserDoesNotExists('the_user', 'secret')
def test_DeletedPersonIsNotUser(self):
p = self._makePerson(reference='the_user', password='secret')
self._assertUserExists('the_user', 'secret')
p.delete()
transaction.commit()
self._assertUserDoesNotExists('the_user', 'secret')
class TestLocalRoleManagement(ERP5TypeTestCase):
"""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