Commit 5ea6322a authored by Jérome Perrin's avatar Jérome Perrin

testInvoice py3

parent c0a6183b
......@@ -565,7 +565,7 @@ class TestInvoice(TestInvoiceMixin):
output = BytesIO()
output.write(odt)
m = OpenDocumentTextFile(output)
text_content=m.toString().encode('ascii','replace')
text_content=m.toString().encode('ascii','replace').decode()
if text_content.find('Resource Tax') != -1 :
self.fail('fail to delete the tax line in product line')
if text_content.find('Tax Code') == -1 :
......@@ -638,7 +638,7 @@ class TestInvoice(TestInvoiceMixin):
parser = OOoParser()
parser.openFromBytes(odt)
style_xml = parser.oo_files['styles.xml']
self.assertNotIn('<draw:image', style_xml)
self.assertNotIn(b'<draw:image', style_xml)
def test_Invoice_viewAsODT_invalid_image(self):
resource = self.portal.getDefaultModule(
......
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