Commit fb4ffc97 authored by Carlos Ramos Carreño's avatar Carlos Ramos Carreño

Fix unicode literals in testFormPrintoutAsODG

See merge request !1923
parents 3a4fe152 415caa15
Pipeline #34113 failed with stage
in 0 seconds
......@@ -459,7 +459,7 @@ class TestFormPrintoutAsODG(TestFormPrintoutMixin):
self.assertTrue(odf_document is not None)
builder = OOoBuilder(odf_document)
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)
# 6. Normal case: unicode string
......@@ -468,7 +468,7 @@ class TestFormPrintoutAsODG(TestFormPrintoutMixin):
self.assertTrue(odf_document is not None)
builder = OOoBuilder(odf_document)
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)
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