From 48235ba807483fe349d2dc66aaeddc0d03f8b0d4 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 9 May 2019 06:55:32 -0700 Subject: Refs #30399 -- Made assertHTMLEqual normalize character and entity references. --- docs/topics/testing/tools.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'docs/topics/testing') diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index d9f508023c..6d37a7421d 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -1603,14 +1603,16 @@ your test suite. * The ordering of attributes of an HTML element is not significant. * Attributes without an argument are equal to attributes that equal in name and value (see the examples). + * Text, character references, and entity references that refer to the same + character are equivalent. The following examples are valid tests and don't raise any ``AssertionError``:: self.assertHTMLEqual( - '

Hello world!

', + '

Hello 'world'!

', '''

- Hello world! + Hello 'world'!

''' ) self.assertHTMLEqual( -- cgit v1.3