Python version of XMLUnit?

Benjamin Niemann pink at odahoda.de
Mon Mar 6 04:14:11 EST 2006


Kent Johnson wrote:

> 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).

http://www.logilab.org/projects/xmldiff

You'd still have to integrate this into your test framework though...

And I'll have a look at XMLUnit - seem's like something I could use for my
current project ;)

-- 
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/



More information about the Python-list mailing list