[Zope-dev] FYI2: Output Checker

Stephan Richter stephan.richter at gmail.com
Wed Mar 6 22:51:44 UTC 2013


Hi everyone,

when we ported TAL to Python 3, we had to fix the attribute order and I think 
Marius sorted them alphabetically. This would break a lot of existing tests. 
Luckily lxml provides and output checker that verifies the XML structure rather 
than the string representation. This will solve your HTML/XML output 
comparison issues. But often you also need your standard RE normalizers as 
well, but the 2 do not mix. For z3c.form I had developed an output checker 
that does both. I just released it as a separate package:

https://pypi.python.org/pypi/zope.outputchecker

Happy porting. :-)

Regards,
Stephan
-- 
Entrepreneur and Software Geek
Google me. "Zope Stephan Richter"


More information about the Zope-Dev mailing list