aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-19 07:56:59 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-19 07:56:59 -0800
commit7030f3a97cf0777e320e22bf030caa66395d09a6 (patch)
tree4d945b254d714b65c8a2ce90948d12de65ca0dda /test
parent4d84b1f573bdb896e5473f7d6b289c937f8bf1d2 (diff)
parent1ac9a016f45d5453e8f53d1b53e48d6fc787b37a (diff)
Merge pull request #245 from cirosantilli/normalize-whitespace-fail
Expose failure to normalize whitespaces
Diffstat (limited to 'test')
-rw-r--r--test/normalize.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/normalize.py b/test/normalize.py
index 6cb11b4..29e404b 100644
--- a/test/normalize.py
+++ b/test/normalize.py
@@ -115,8 +115,12 @@ def normalize_html(html):
Return normalized form of HTML which ignores insignificant output
differences:
- * Multiple inner whitespaces are collapsed to a single space (except
- in pre tags).
+ Multiple inner whitespaces are collapsed to a single space (except
+ in pre tags):
+
+ >>> normalize_html("<p>a \t\nb</p>")
+ u'<p>a b</p>'
+
* Outer whitespace (outside block-level tags) is removed.
* Self-closing tags are converted to open tags.
* Attributes are sorted and lowercased.