diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-18 10:30:50 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-18 10:30:50 -0500 |
commit | 397483b981b7fe84d4f43dcb5c01268c3bf81602 (patch) | |
tree | a9292280a91219f0ffb3c91f31118eb2469b2ff6 /tests/test_lxml.py | |
parent | 6510a4b2bad996786e74c53073fbf543f60a9a10 (diff) |
Added failing encoding conversion tests for html5lib.
Diffstat (limited to 'tests/test_lxml.py')
-rw-r--r-- | tests/test_lxml.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_lxml.py b/tests/test_lxml.py index 0f54e78..1218763 100644 --- a/tests/test_lxml.py +++ b/tests/test_lxml.py @@ -383,10 +383,10 @@ class TestLXMLBuilderEncodingConversion(SoupTest): def setUp(self): super(TestLXMLBuilderEncodingConversion, self).setUp() - self.unicode_data = u"<html><body><foo>\xe9</foo></body></html>" + self.unicode_data = u"<html><head></head><body><foo>\xe9</foo></body></html>" self.utf8_data = self.unicode_data.encode("utf-8") self.assertEqual( - self.utf8_data, "<html><body><foo>\xc3\xa9</foo></body></html>") + self.utf8_data, "<html><head></head><body><foo>\xc3\xa9</foo></body></html>") def test_ascii_in_unicode_out(self): # ASCII input is converted to Unicode. The originalEncoding |