summaryrefslogtreecommitdiff
path: root/bs4/tests/test_htmlparser.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2012-01-20 16:18:45 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2012-01-20 16:18:45 -0500
commit703ee4a184e491be056ae5c4c7549e004be12622 (patch)
tree4dd26ef0757cae50fa9bfeb4a3a216a9319785a6 /bs4/tests/test_htmlparser.py
parentdf26dc64d868875d7cd8ca550f1a174d68dd7c67 (diff)
Made it easier to convert BS3 code to BS4.
Diffstat (limited to 'bs4/tests/test_htmlparser.py')
-rw-r--r--bs4/tests/test_htmlparser.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bs4/tests/test_htmlparser.py b/bs4/tests/test_htmlparser.py
index d2db38e..8aa2471 100644
--- a/bs4/tests/test_htmlparser.py
+++ b/bs4/tests/test_htmlparser.py
@@ -44,6 +44,10 @@ class TestHTMLParserTreeBuilder(TestLXMLBuilder):
self.assertSoupEquals(
"<p>Foo<br/>bar</p>", "<p>Foo<br />bar</p>")
+ def test_hex_entities_in_text(self):
+ # XXX This tests a workaround for a bug in HTMLParser.
+ self.assertSoupEquals("&#xf1;", u"\xf1")
+
def test_entities_in_attribute_values_converted_during_parsing(self):
# The numeric entity isn't recognized without the closing