FYI2: Output Checker
Stephan Richter <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <3141966.SKi8bHkoqE@einstein> |
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" _______________________________________________ Zope-Dev maillist - [email protected] https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )