Commit 8b85be4f authored by Carlos Ramos Carreño's avatar Carlos Ramos Carreño Committed by Jérome Perrin

Fix unicode literals in testFormPrintoutAsODG.

parent cfa0e910
...@@ -459,7 +459,7 @@ class TestFormPrintoutAsODG(TestFormPrintoutMixin): ...@@ -459,7 +459,7 @@ class TestFormPrintoutAsODG(TestFormPrintoutMixin):
self.assertTrue(odf_document is not None) self.assertTrue(odf_document is not None)
builder = OOoBuilder(odf_document) builder = OOoBuilder(odf_document)
content_xml = builder.extract("content.xml") content_xml = builder.extract("content.xml")
self.assertIn("Français".encode('utf-8'), content_xml) self.assertIn(u"Français".encode('utf-8'), content_xml)
self._validate(odf_document) self._validate(odf_document)
# 6. Normal case: unicode string # 6. Normal case: unicode string
...@@ -468,7 +468,7 @@ class TestFormPrintoutAsODG(TestFormPrintoutMixin): ...@@ -468,7 +468,7 @@ class TestFormPrintoutAsODG(TestFormPrintoutMixin):
self.assertTrue(odf_document is not None) self.assertTrue(odf_document is not None)
builder = OOoBuilder(odf_document) builder = OOoBuilder(odf_document)
content_xml = builder.extract("content.xml") content_xml = builder.extract("content.xml")
self.assertIn("Français test2".encode('utf-8'), content_xml) self.assertIn(u"Français test2".encode('utf-8'), content_xml)
self._validate(odf_document) self._validate(odf_document)
def test_suite(): def test_suite():
......
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