def schema(): return parse_xsd('XSD/DIAN/DIAN_UBL.xsd')
def test_xsd_parser_validate_correct_invoice(): xschema = parse_xsd("XSD/DIAN/DIAN_UBL.xsd") directory = os.path.dirname(os.path.realpath(__file__)) doc = parse(os.path.join(directory, "data/signed_invoice.xml")) assert xschema.validate(doc)
def test_xsd_parser_parse(): xschema = parse_xsd("XSD/DIAN/DIAN_UBL.xsd") assert isinstance(xschema, XMLSchema)
def schema(): return parse_xsd('XSD/XADES/XAdES01903v132-201601.xsd')