From ea57d5122f1df133927e266e5fabbf0ef767f460 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Mon, 3 Jan 2011 16:57:55 -0500 Subject: Moved the test helpers out of the test directory. --- src/beautifulsoup/tests/test_html5lib.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/beautifulsoup/tests/test_html5lib.py') 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): '
')) + def test_foo(self): + isolatin = """Sacr\xe9 bleu!""" + soup = self.soup(isolatin) + utf8 = isolatin.replace("ISO-Latin-1".encode(), "utf-8".encode()) + utf8 = utf8.replace("\xe9", "\xc3\xa9") + + print soup -- cgit v1.2.3