cubicweb/web/test/unittest_application.py
branch3.24
changeset 11828 a06cf11f7d87
parent 11800 3cd5ac8d43ed
child 11891 67185e65f020
--- a/cubicweb/web/test/unittest_application.py	Thu Nov 10 18:25:50 2016 +0100
+++ b/cubicweb/web/test/unittest_application.py	Tue Nov 15 00:12:34 2016 +0100
@@ -248,8 +248,9 @@
         """Language negociated, normal case."""
         self.config.global_set_option('language-mode', 'http-negotiation')
         orig_translations = self.config.translations.copy()
-        self.config.translations = {'fr': (text_type, text_type),
-                                    'en': (text_type, text_type)}
+        self.config.translations = {
+            'fr': (text_type, lambda x, y: text_type(y)),
+            'en': (text_type, lambda x, y: text_type(y))}
         try:
             headers = {'Accept-Language': 'fr'}
             with self.admin_access.web_request(headers=headers) as req: