Commit f69649f9 authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

OOoUtils: Followup of 48e2e4fd: Parsed OOo file content is bytes().

parent e97a6089
......@@ -3394,9 +3394,9 @@ class TestAccountingExport(AccountingTestCase):
'40 - Payable',
self.account_module.payable.Account_getFormattedTitle())
# check that this account name can be found in the content
self.assertIn('40 - Payable', content_xml)
self.assertIn(b'40 - Payable', content_xml)
# check that we don't have unknown categories
self.assertNotIn('???', content_xml)
self.assertNotIn(b'???', content_xml)
class TestTransactions(AccountingTestCase):
......
......@@ -640,7 +640,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