summaryrefslogtreecommitdiff
path: root/bs4/testing.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2012-05-03 10:29:55 -0400
committerLeonard Richardson <leonardr@segfault.org>2012-05-03 10:29:55 -0400
commit0401057f29c9c8e6ee781aa9ca6fd1a395a4b084 (patch)
tree7efefe13bf03632255b59f6241bad4c660de3e4f /bs4/testing.py
parent32a764727d7ae697945e70a942eab8899bc2f30d (diff)
Fixed the handling of &quot; with the built-in parser. [bug=993871]
Diffstat (limited to 'bs4/testing.py')
-rw-r--r--bs4/testing.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bs4/testing.py b/bs4/testing.py
index b004c18..40dc976 100644
--- a/bs4/testing.py
+++ b/bs4/testing.py
@@ -217,6 +217,10 @@ class HTMLTreeBuilderSmokeTest(object):
self.assertSoupEquals("<p>pi&#xf1;ata</p>", expect)
self.assertSoupEquals("<p>pi&ntilde;ata</p>", expect)
+ def test_quot_entity_converted_to_quotation_mark(self):
+ self.assertSoupEquals("<p>I said &quot;good day!&quot;</p>",
+ '<p>I said "good day!"</p>')
+
def test_out_of_range_entity(self):
expect = u"\N{REPLACEMENT CHARACTER}"
self.assertSoupEquals("&#10000000000000;", expect)