1
0
Fork 0
inkscape/testfiles/cli_tests/testcases/regression-2602_script.py
Daniel Baumann 02d935e272
Adding upstream version 1.4.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 23:40:13 +02:00

10 lines
358 B
Python

from lxml import etree
document = etree.parse("regression-2602_output.svg")
parent = document.find('{http://www.w3.org/2000/svg}g[@id="parent"]')
paths = parent.findall('{http://www.w3.org/2000/svg}path')
assert parent.attrib.get("style") == "fill:#0000ff"
assert paths[0].attrib.get("style") == "fill:#ff0000"
assert paths[1].attrib.get("style") is None