diff --git a/tests/test_fe_form.py b/tests/test_fe_form.py index eb72ae1..b7e1ed5 100644 --- a/tests/test_fe_form.py +++ b/tests/test_fe_form.py @@ -130,8 +130,8 @@ def test_invoicesimple_xml_signed(monkeypatch, simple_invoice): import helpers helpers.mock_urlopen(m) xml.add_extension(signer) - - elem = xml.find_or_create_element('/fe:Invoice/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/ds:Signature') + + elem = xml.get_element('/fe:Invoice/ext:UBLExtensions/ext:UBLExtension[2]/ext:ExtensionContent/ds:Signature') assert elem.text is not None def test_invoicesimple_zip(simple_invoice):