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

- check if it is possible to set empty reference on person document

   after non empty was set


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39500 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d90653c7
......@@ -402,6 +402,14 @@ class TestUserManagement(ERP5TypeTestCase):
self._assertUserExists('the_user', 'secret')
def test_PersonLoginIsPossibleToUnset(self):
"""Make sure that it is possible to remove reference"""
p = self._makePerson(reference='foo', password='secret',)
p.setReference(None)
transaction.commit()
self.tic()
self.assertEqual(None, person.getReference())
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