Commit f943c1ee authored by Łukasz Nowak's avatar Łukasz Nowak

- check that deleting person object disallows user to login


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30906 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b8f16fbb
......@@ -333,6 +333,15 @@ class TestUserManagement(ERP5TypeTestCase):
self._assertUserDoesNotExists('the_user', 'secret')
def test_ReallyDeletedPersonIsNotUser(self):
p = self._makePerson(reference='the_user', password='secret')
self._assertUserExists('the_user', 'secret')
p.getParentValue().deleteContent(p.getId())
transaction.commit()
self._assertUserDoesNotExists('the_user', 'secret')
def test_InvalidatedPersonIsUser(self):
p = self._makePerson(reference='the_user', password='secret')
self._assertUserExists('the_user', 'secret')
......
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