Python version of XMLUnit?

Kent Johnson kent at kentsjohnson.com
Sun Mar 5 13:36:15 EST 2006


I have found XMLUnit to be very helpful for testing Java and Jython code 
that generates XML. At its heart XMLUnit is an XML-aware diff - it 
parses expected and actual XML and pinpoints any differences. It is 
smart enough to ignore things like attribute order, different quoting 
and escaping styles, and insignificant whitespace.

Now I am working on a CPython project and have a similar need. Is there 
any comparable tool for Python? Basically I'm looking for a tool to 
compare XML and show diffs in an intelligible fashion that is usable 
from Python unit tests (using py.test, if it matters).

Thanks,
Kent

http://xmlunit.sourceforge.net/



More information about the Python-list mailing list