[Erp5-report] r39500 luke - /erp5/trunk/products/ERP5Security/tests/testERP5Security.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Oct 25 15:17:00 CEST 2010


Author: luke
Date: Mon Oct 25 15:16:58 2010
New Revision: 39500

URL: http://svn.erp5.org?rev=39500&view=rev
Log:
 - check if it is possible to set empty reference on person document
   after non empty was set

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=39500&r1=39499&r2=39500&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Security/tests/testERP5Security.py [utf8] (original)
+++ erp5/trunk/products/ERP5Security/tests/testERP5Security.py [utf8] Mon Oct 25 15:16:58 2010
@@ -402,6 +402,14 @@ class TestUserManagement(ERP5TypeTestCas
 
     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.
 




More information about the Erp5-report mailing list