diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-20 19:50:45 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-20 19:50:45 -0500 |
commit | 2fa73e2cb99b0816148ade6150f378993907534e (patch) | |
tree | cf7e2371881c680990157cae621f6045f5941f56 /tests/test_lxml.py | |
parent | e6320fad4cd162ab6c7dfe02be5206f5c3f8c25b (diff) | |
parent | ce3742abd4c7fe39247569e82e2b3acdd6052bb1 (diff) |
Added a registry for tree builders and made it possible to find a tree builder that has the features you want from the BeautifulSoup constructor.
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 9d08aef..df2f341 100644 --- a/tests/test_lxml.py +++ b/tests/test_lxml.py @@ -325,7 +325,7 @@ class TestLXMLBuilder(SoupTest): def test_soupstrainer(self): strainer = SoupStrainer("b") soup = self.soup("A <b>bold</b> <meta /> <i>statement</i>", - parseOnlyThese=strainer) + parse_only=strainer) self.assertEquals(soup.decode(), "<b>bold</b>") @@ -506,7 +506,7 @@ class TestLXMLBuilderEncodingConversion(SoupTest): # A real-world test to make sure we can convert ISO-8859-9 (a # Hebrew encoding) to UTF-8. soup = self.soup(self.HEBREW_DOCUMENT, - fromEncoding="iso-8859-8") + from_encoding="iso-8859-8") self.assertEquals(soup.original_encoding, 'iso-8859-8') self.assertEquals( soup.encode('utf-8'), |