summaryrefslogtreecommitdiff
path: root/src/beautifulsoup/tests/test_html5lib.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-01-03 16:57:55 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2011-01-03 16:57:55 -0500
commitea57d5122f1df133927e266e5fabbf0ef767f460 (patch)
tree31c5c42356ff48c138459259bba551c5a5963b74 /src/beautifulsoup/tests/test_html5lib.py
parent020bab27f80446db8780f43c893451bb98b06e4d (diff)
Moved the test helpers out of the test directory.
Diffstat (limited to 'src/beautifulsoup/tests/test_html5lib.py')
-rw-r--r--src/beautifulsoup/tests/test_html5lib.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/beautifulsoup/tests/test_html5lib.py b/src/beautifulsoup/tests/test_html5lib.py
index 4ffd968..7164dac 100644
--- a/src/beautifulsoup/tests/test_html5lib.py
+++ b/src/beautifulsoup/tests/test_html5lib.py
@@ -1,5 +1,8 @@
-from helpers import BuilderInvalidMarkupSmokeTest, BuilderSmokeTest
from beautifulsoup.builder.html5lib_builder import HTML5TreeBuilder
+from beautifulsoup.testing import (
+ BuilderInvalidMarkupSmokeTest,
+ BuilderSmokeTest,
+)
class TestHTML5Builder(BuilderSmokeTest):
@@ -30,4 +33,11 @@ class TestHTML5BuilderInvalidMarkup(BuilderInvalidMarkupSmokeTest):
'<table><tbody><tr id="nested"></tr></tbody></table>'))
+ def test_foo(self):
+ isolatin = """<html><meta http-equiv="Content-type" content="text/html; charset=ISO-Latin-1" />Sacr\xe9 bleu!</html>"""
+ soup = self.soup(isolatin)
+ utf8 = isolatin.replace("ISO-Latin-1".encode(), "utf-8".encode())
+ utf8 = utf8.replace("\xe9", "\xc3\xa9")
+
+ print soup