Commit efc4dc56 authored by Jérome Perrin's avatar Jérome Perrin

payment_mean_sepa: py3

parent 8069c403
...@@ -140,7 +140,7 @@ class TestPaymentTransactionGroupPaymentSEPA(AccountingTestCase): ...@@ -140,7 +140,7 @@ class TestPaymentTransactionGroupPaymentSEPA(AccountingTestCase):
# this XML validates against the schema # this XML validates against the schema
xmlschema = lxml.etree.XMLSchema( xmlschema = lxml.etree.XMLSchema(
lxml.etree.fromstring(str(getattr(self.portal, 'pain.001.001.02.xsd').data))) lxml.etree.fromstring(bytes(getattr(self.portal, 'pain.001.001.02.xsd').data)))
xmlschema.assertValid(pain) xmlschema.assertValid(pain)
self.assertEqual( self.assertEqual(
...@@ -234,7 +234,7 @@ class TestPaymentTransactionGroupPaymentSEPA(AccountingTestCase): ...@@ -234,7 +234,7 @@ class TestPaymentTransactionGroupPaymentSEPA(AccountingTestCase):
pain = lxml.etree.fromstring( pain = lxml.etree.fromstring(
getattr(ptg, 'PaymentTransactionGroup_viewAsSEPACreditTransferPain.001.001.02')().encode('utf-8')) getattr(ptg, 'PaymentTransactionGroup_viewAsSEPACreditTransferPain.001.001.02')().encode('utf-8'))
xmlschema = lxml.etree.XMLSchema( xmlschema = lxml.etree.XMLSchema(
lxml.etree.fromstring(str(getattr(self.portal, 'pain.001.001.02.xsd').data))) lxml.etree.fromstring(bytes(getattr(self.portal, 'pain.001.001.02.xsd').data)))
xmlschema.assertValid(pain) xmlschema.assertValid(pain)
self.assertEqual( self.assertEqual(
......
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