Commit fe06db19 by Romain Courteaud

[test] Fixup failing tests

See 28774376
1 parent ebc161b4
......@@ -841,7 +841,8 @@ class TestAuthenticationPolicy(ERP5TypeTestCase):
handle_errors=False)
# When password reset is succesful, user is logged out
self.assertEqual(httplib.FOUND, ret.getStatus())
self.assertTrue(ret.getHeader("Location").endswith("/logout"))
self.assertEqual(self.portal.portal_preferences.absolute_url(),
ret.getHeader("Location"))
# password is changed on the login
self.assertTrue(login.checkPassword('long_enough_password'))
......
......@@ -544,7 +544,7 @@ class TestPreferences(UserManagementTestCase):
current_password=password,
new_password=new_password,
)
self.assertEqual(result, self.portal.absolute_url()+'/logout')
self.assertEqual(result, self.portal.absolute_url()+'/portal_preferences')
self.login()
self._assertUserExists(login, new_password)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!