[Erp5-report] r30906 - /erp5/trunk/products/ERP5Security/tests/testERP5Security.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Nov 27 17:33:32 CET 2009
Author: luke
Date: Fri Nov 27 17:33:32 2009
New Revision: 30906
URL: http://svn.erp5.org?rev=30906&view=rev
Log:
- check that deleting person object disallows user to login
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=30906&r1=30905&r2=30906&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Security/tests/testERP5Security.py [utf8] (original)
+++ erp5/trunk/products/ERP5Security/tests/testERP5Security.py [utf8] Fri Nov 27 17:33:32 2009
@@ -333,6 +333,15 @@
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')
More information about the Erp5-report
mailing list