inkex.tester.xmldiff module
Allow two xml files/lxml etrees to be compared, returning their differences.
-
inkex.tester.xmldiff.text_compare(test1, test2)[source]
Compare two text strings while allowing for ‘*’ to match
anything on either lhs or rhs.
-
class inkex.tester.xmldiff.DeltaLogger(iterable=(), /)[source]
Bases: list
A record keeper of the delta between two svg files
-
append_tag(tag_a, tag_b)[source]
Record a tag difference
-
append_attr(attr, value_a, value_b)[source]
Record an attribute difference
-
append_text(text_a, text_b)[source]
Record a text difference
-
inkex.tester.xmldiff.to_xml(data)[source]
Convert string or bytes to xml parsed root node
-
inkex.tester.xmldiff.xmldiff(data1, data2)[source]
Create an xml difference, will modify the first xml structure with a diff
-
inkex.tester.xmldiff._xmldiff(xml1, xml2, delta)[source]