diff --git a/product/ERP5/tests/testAuthenticationPolicy.py b/product/ERP5/tests/testAuthenticationPolicy.py index ca33652665a064c0370c3646f97966065ffe9cd4..d0322193507706332480d83a018edd60ce94bc5c 100644 --- a/product/ERP5/tests/testAuthenticationPolicy.py +++ b/product/ERP5/tests/testAuthenticationPolicy.py @@ -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')) diff --git a/product/ERP5Security/tests/testERP5Security.py b/product/ERP5Security/tests/testERP5Security.py index f31302f4acae991a8ca34b19e06eaaa8e20912fb..52c5f79bf63ae83e50007f75b8028f1c29441812 100644 --- a/product/ERP5Security/tests/testERP5Security.py +++ b/product/ERP5Security/tests/testERP5Security.py @@ -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)