se extendie NominaIndividualDeAjuste de NominaIndividual

FossilOrigin-Name: 10b3af439bee9b932e4f5067bec0768af60e514f595e00ecb1bdf7c88c39afc1
This commit is contained in:
bit4bit
2021-11-10 01:08:39 +00:00
parent b60fe675c1
commit bb16b5e968
3 changed files with 69 additions and 28 deletions

View File

@@ -370,3 +370,17 @@ def test_facho_xml_query_element_text_or_attribute():
assert xml.get_element_text_or_attribute('/root/A') == 'contenido'
assert xml.get_element_text_or_attribute('/root/A/@clave') == 'valor'
def test_facho_xml_build_xml_absolute():
xml = facho.FachoXML('root')
xpath = xml.xpath_from_root('/A')
assert xpath == '/root/A'
def test_facho_xml_build_xml_absolute_namespace():
xml = facho.FachoXML('{%s}root' % ('http://www.dian.gov.co/contratos/facturaelectronica/v1'),
nsmap={'fe': 'http://www.dian.gov.co/contratos/facturaelectronica/v1'})
xpath = xml.xpath_from_root('/A')
assert xpath == '/fe:root/A'