[Erp5-report] r37967 fabien - /erp5/trunk/products/ERP5/tests/testPasswordTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Aug 24 10:22:48 CEST 2010


Author: fabien
Date: Tue Aug 24 10:22:48 2010
New Revision: 37967

URL: http://svn.erp5.org?rev=37967&view=rev
Log:
fix tests. Now the request is found, so instead of just returning a simple
message, user is redirected to a page. So check the portal_status_message value
in the url instead of the returned message

Modified:
    erp5/trunk/products/ERP5/tests/testPasswordTool.py

Modified: erp5/trunk/products/ERP5/tests/testPasswordTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testPasswordTool.py?rev=37967&r1=37966&r2=37967&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testPasswordTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testPasswordTool.py [utf8] Tue Aug 24 10:22:48 2010
@@ -448,8 +448,8 @@ class TestPasswordTool(ERP5TypeTestCase)
     self.tic()
     self.logout()
     ret = self.portal.portal_password.mailPasswordResetRequest(user_login='user')
-    self.assertEquals("User user does not have an email address, please contact"
-        " site administrator directly", str(ret))
+    self.assertTrue("portal_status_message=User+user+does+not+have+an+email+"\
+        "address%2C+please+contact+site+administrator+directly" in str(ret))
 
   def test_acquired_email_on_person(self):
     organisation = self.portal.organisation_module.newContent(
@@ -467,8 +467,8 @@ class TestPasswordTool(ERP5TypeTestCase)
     self._assertUserExists('user', 'password')
     self.logout()
     ret = self.portal.portal_password.mailPasswordResetRequest(user_login='user')
-    self.assertEquals("User user does not have an email address, please contact"
-        " site administrator directly", str(ret))
+    self.assertTrue("portal_status_message=User+user+does+not+have+an+email+"\
+        "address%2C+please+contact+site+administrator+directly" in str(ret))
 
 
 class TestPasswordToolWithCRM(TestPasswordTool):




More information about the Erp5-report mailing list