Opened 4 years ago

Last modified 4 years ago

#32556 closed Bug

assertHTMLEqual gives a confusing error message with empty attributes — at Version 1

Reported by: Baptiste Mispelon Owned by: nobody
Component: Testing framework Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Baptiste Mispelon)

If you try the following assertion:

self.assertHTMLEqual('<input value>', '<input value="">')

You get a test failure and the following message:

AssertionError: <input value> != <input value>
  <input value>

I'm getting mixed signals here: either the test should pass or the error message should show the difference between the two strings.

I'm not actually sure which option would be correct in this case so I'm leaving the ticket as "uncategorized" instead of "bug" or "cleanup".

Change History (1)

comment:1 by Baptiste Mispelon, 4 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top