diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-20 19:39:31 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-20 19:39:31 -0500 |
commit | 121361b1835a619ae03fce39cb5569f28968f1b0 (patch) | |
tree | 01da66b0c4be7146b37c898b5c617134b9ae4479 /tests/test_tree.py | |
parent | c3090d7e7337f88853fc5371c6d8011eb638c37f (diff) |
Started using the builder registry.
Diffstat (limited to 'tests/test_tree.py')
-rw-r--r-- | tests/test_tree.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_tree.py b/tests/test_tree.py index cefdf4a..0232bac 100644 --- a/tests/test_tree.py +++ b/tests/test_tree.py @@ -13,6 +13,7 @@ import copy import cPickle as pickle import re from beautifulsoup import BeautifulSoup +from beautifulsoup.builder import registry from beautifulsoup.element import CData, SoupStrainer, Tag from beautifulsoup.testing import SoupTest @@ -523,7 +524,7 @@ class TestTreeModification(SoupTest): self.assertEqual(soup.decode(), self.document_for('<a id2="foo"></a>')) def test_new_tag_creation(self): - builder = BeautifulSoup.default_builder() + builder = registry.lookup('html5lib')() soup = self.soup("<body></body>", builder=builder) a = Tag(soup, builder, 'a') ol = Tag(soup, builder, 'ol') |