Commit a7cfc8bf authored by Jérome Perrin's avatar Jérome Perrin

fixup! authentication_policy: py3

parent f8e50bd5
...@@ -849,7 +849,7 @@ class TestAuthenticationPolicy(ERP5TypeTestCase): ...@@ -849,7 +849,7 @@ class TestAuthenticationPolicy(ERP5TypeTestCase):
ret = submit_reset_password_dialog('alice') ret = submit_reset_password_dialog('alice')
self.assertEqual(six.moves.http_client.OK, ret.getStatus()) self.assertEqual(six.moves.http_client.OK, ret.getStatus())
self.assertIn( 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()) ret.getBody())
# now with a password complying to the policy # now with a password complying to the policy
...@@ -906,7 +906,7 @@ class TestAuthenticationPolicy(ERP5TypeTestCase): ...@@ -906,7 +906,7 @@ class TestAuthenticationPolicy(ERP5TypeTestCase):
ret = submit_change_password_dialog('short') ret = submit_change_password_dialog('short')
self.assertEqual(six.moves.http_client.OK, ret.getStatus()) self.assertEqual(six.moves.http_client.OK, ret.getStatus())
self.assertIn( 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()) ret.getBody())
# if for some reason, PreferenceTool_setNewPassword is called directly, # 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