[Erp5-report] r30883 - /erp5/trunk/products/ERP5Security/tests/testERP5Security.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Nov 27 11:38:13 CET 2009
Author: luke
Date: Fri Nov 27 11:38:12 2009
New Revision: 30883
URL: http://svn.erp5.org?rev=30883&view=rev
Log:
- assert that invalidated user cannot 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=30883&r1=30882&r2=30883&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Security/tests/testERP5Security.py [utf8] (original)
+++ erp5/trunk/products/ERP5Security/tests/testERP5Security.py [utf8] Fri Nov 27 11:38:12 2009
@@ -333,6 +333,16 @@
self._assertUserDoesNotExists('the_user', 'secret')
+ def test_InvalidatedPersonIsNotUser(self):
+ p = self._makePerson(reference='the_user', password='secret')
+ self._assertUserExists('the_user', 'secret')
+
+ p.validate()
+ p.invalidate()
+ transaction.commit()
+
+ self._assertUserDoesNotExists('the_user', 'secret')
+
class TestLocalRoleManagement(ERP5TypeTestCase):
"""Tests Local Role Management with ERP5Security.
More information about the Erp5-report
mailing list