[Erp5-report] r29510 - /erp5/trunk/products/ERP5Security/tests/testERP5Security.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Oct 9 11:51:06 CEST 2009
Author: luke
Date: Fri Oct 9 11:51:05 2009
New Revision: 29510
URL: http://svn.erp5.org?rev=29510&view=rev
Log:
- check that deleted Person objects are not providing valid logins anymore
Modified:
erp5/trunk/products/ERP5Security/tests/testERP5Security.py
Modified: erp5/trunk/products/ERP5Security/tests/testERP5Security.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Security/tests/testERP5Security.py?rev=29510&r1=29509&r2=29510&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Security/tests/testERP5Security.py [utf8] (original)
+++ erp5/trunk/products/ERP5Security/tests/testERP5Security.py [utf8] Fri Oct 9 11:51:05 2009
@@ -327,6 +327,15 @@
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.
More information about the Erp5-report
mailing list