'''Created 4 Sept 2024 Levi''' import unittest from lxml import etree from lxml.etree import LxmlSyntaxError from anafapi.en16931 import Invoice class Test(unittest.TestCase): def test_cnote(self): invoice = Invoice.from_xml(r'c:\Users\levi\FACT1\creditNote_ex.xml') print(invoice.buyer_party.name) if __name__ == "__main__": Test().test_cnote()