Opened 3 years ago

Last modified 3 years ago

#32556 closed Bug

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

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

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 (0)

Note: See TracTickets for help on using tickets.
Back to Top