Commit b2f37e61 authored by Mame Coumba Sall's avatar Mame Coumba Sall

modified test to avoid UnicodeDecodeError on translation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26083 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5255df89
......@@ -255,7 +255,7 @@ class TestTranslation(ERP5TypeTestCase):
message_catalog.gettext("Draft",add=1)
message_catalog.gettext("Validated [state in item_workflow]", add=1)
message_catalog.message_edit(
'Validated', self.lang, 'Validé', '')
'Validated', self.lang, 'Validé'.decode('utf8'), '')
message_catalog.message_edit(
"Validated [state in item_workflow]",self.lang,"En bon usage", '')
message_catalog.message_edit('Draft', self.lang, '', '')
......@@ -272,6 +272,7 @@ class TestTranslation(ERP5TypeTestCase):
transaction.commit()
self.tic()
self.portal.Localizer.get_selected_language = lambda: self.lang
self.assertEquals(
item.getTranslatedValidationStateTitle(),'Draft')
item.validate()
......@@ -280,6 +281,7 @@ class TestTranslation(ERP5TypeTestCase):
self.assertEquals(
organisation.getTranslatedValidationStateTitle(),'Validé')
def test_standard_translated_related_keys(self):
......
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