diff options
author | Leonard Richardson <leonardr@segfault.org> | 2012-05-03 10:29:55 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2012-05-03 10:29:55 -0400 |
commit | 0401057f29c9c8e6ee781aa9ca6fd1a395a4b084 (patch) | |
tree | 7efefe13bf03632255b59f6241bad4c660de3e4f /bs4/testing.py | |
parent | 32a764727d7ae697945e70a942eab8899bc2f30d (diff) |
Fixed the handling of " with the built-in parser. [bug=993871]
Diffstat (limited to 'bs4/testing.py')
-rw-r--r-- | bs4/testing.py | 4 |
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ñata</p>", expect) self.assertSoupEquals("<p>piñata</p>", expect) + def test_quot_entity_converted_to_quotation_mark(self): + self.assertSoupEquals("<p>I said "good day!"</p>", + '<p>I said "good day!"</p>') + def test_out_of_range_entity(self): expect = u"\N{REPLACEMENT CHARACTER}" self.assertSoupEquals("�", expect) |