Commit 542d12c4 authored by Jérome Perrin's avatar Jérome Perrin

fixup! authentication_policy: py3

parent a066967d
......@@ -849,7 +849,7 @@ class TestAuthenticationPolicy(ERP5TypeTestCase):
ret = submit_reset_password_dialog('alice')
self.assertEqual(six.moves.http_client.OK, ret.getStatus())
self.assertIn(
'<span class="error">Yöü can not ... translated</span>'.encode('utf-8'),
u'<span class="error">Yöü can not ... translated</span>'.encode('utf-8'),
ret.getBody())
# now with a password complying to the policy
......@@ -906,7 +906,7 @@ class TestAuthenticationPolicy(ERP5TypeTestCase):
ret = submit_change_password_dialog('short')
self.assertEqual(six.moves.http_client.OK, ret.getStatus())
self.assertIn(
'<span class="error">Töü short ... translated</span>'.encode('utf-8'),
u'<span class="error">Töü short ... translated</span>'.encode('utf-8'),
ret.getBody())
# if for some reason, PreferenceTool_setNewPassword is called directly,
......
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