Doctest OutputChecker for xml and json
|Reported by:||Leo Soto M.||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Currently, there are many doctests which checks for XHTML and JSON output. These checks don't pass on Jython, because the differences in dictionary attribute ordering tend to produce output where the XML or JSON attribute ordering is also different of what is expected.
The attached patch adds XML and JSON checking to django.test.testcases.OutputChecker, allowing this tests to pass on Jython (and, presumably, on other VMs).
Change History (11)
comment:1 Changed 8 years ago by
|Component:||Uncategorized → Unit test system|
|Triage Stage:||Unreviewed → Accepted|