From 703ee4a184e491be056ae5c4c7549e004be12622 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Fri, 20 Jan 2012 16:18:45 -0500 Subject: Made it easier to convert BS3 code to BS4. --- bs4/tests/test_htmlparser.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bs4/tests/test_htmlparser.py') 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( "

Foo
bar

", "

Foo
bar

") + def test_hex_entities_in_text(self): + # XXX This tests a workaround for a bug in HTMLParser. + self.assertSoupEquals("ñ", u"\xf1") + def test_entities_in_attribute_values_converted_during_parsing(self): # The numeric entity isn't recognized without the closing -- cgit v1.2.3