#25191: Better error output for assertXMLEqual
-----------------------------------+--------------------
     Reporter:  shelldweller       |      Owner:  nobody
         Type:  New feature        |     Status:  new
    Component:  Testing framework  |    Version:  master
     Severity:  Normal             |   Keywords:
 Triage Stage:  Unreviewed         |  Has patch:  0
Easy pickings:  1                  |      UI/UX:  0
-----------------------------------+--------------------
 It is difficult to understand test failures when comparing XML files.
 Currently error message shows the beginning of each XML string and output
 looks something like this:

 {{{
 AssertionError: '<?xml version="1.0" encoding="utf-8"?>\n<xliff
 version=\'1.2\'\n       xmlns=\' [truncated]... != '<?xml version="1.0"
 encoding="utf-8"?>\n<xliff version=\'1.2\' xmlns=\'urn:oasi [truncated]...
 }}}

 It would be very nice to have output similar to assertHTMLEqual, with
 markup differences highlighted like this:

 {{{
 AssertionError: <b>
 Blue
 </b>sky != <b>
 Blue
 </b>dye
   <b>
   Blue
 - </b>sky
 + </b>dye
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25191>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/055.6fb567ccff4dd85d9dafc87e068f3c3f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to