Commit a2999617 authored by Fabien Morin's avatar Fabien Morin

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


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37967 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 99dc1c05
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment