From 89961f4de3ab1e88b15dd9c0aaa0af77a7c32262 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Sun, 20 Feb 2011 15:08:51 -0500 Subject: Discovered that html5lib can't be made to support SoupStrainers, and changed the test suite appropriately. --- tests/test_tree.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests/test_tree.py') diff --git a/tests/test_tree.py b/tests/test_tree.py index 8cbd309..384d518 100644 --- a/tests/test_tree.py +++ b/tests/test_tree.py @@ -524,14 +524,15 @@ class TestTreeModification(SoupTest): def test_new_tag_creation(self): builder = BeautifulSoup.default_builder() - soup = self.soup("", builder=builder) + soup = self.soup("", builder=builder) a = Tag(soup, builder, 'a') ol = Tag(soup, builder, 'ol') a['href'] = 'http://foo.com/' - soup.insert(0, a) - soup.insert(1, ol) + soup.body.insert(0, a) + soup.body.insert(1, ol) self.assertEqual( - soup.decode(), '
    ') + soup.body.encode(), + '
      ') def test_append_to_contents_moves_tag(self): doc = """

      Don't leave me here.

      -- cgit v1.2.3