lxml/lxml — Issue #35: XML/HTML equality assertion with neat error message 
Author: zefciu
Created: 2012-03-03 15:21:30+00:00
State: open

lxml already offers the utility to perform doctests that ignore whitespace differences and prints a want-got diff. However a similar utility for assert-based unit-tests would be helpful. As all the logic is already there in the doctest utility class, all that should be done is to move it to some independent location and create a simple assertHTMLequal function.

If this is acceptable, I will try to provide a pull request with this feature, but first I would like to hear opinions from lxml maintainers.