summaryrefslogtreecommitdiff
path: root/tests/test_soup.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-02-20 19:50:45 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2011-02-20 19:50:45 -0500
commit2fa73e2cb99b0816148ade6150f378993907534e (patch)
treecf7e2371881c680990157cae621f6045f5941f56 /tests/test_soup.py
parente6320fad4cd162ab6c7dfe02be5206f5c3f8c25b (diff)
parentce3742abd4c7fe39247569e82e2b3acdd6052bb1 (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_soup.py')
-rw-r--r--tests/test_soup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_soup.py b/tests/test_soup.py
index 01dff53..bb2262a 100644
--- a/tests/test_soup.py
+++ b/tests/test_soup.py
@@ -12,7 +12,7 @@ class TestSelectiveParsing(SoupTest):
def test_parse_with_soupstrainer(self):
markup = "No<b>Yes</b><a>No<b>Yes <c>Yes</c></b>"
strainer = SoupStrainer("b")
- soup = self.soup(markup, parseOnlyThese=strainer)
+ soup = self.soup(markup, parse_only=strainer)
self.assertEquals(soup.encode(), "<b>Yes</b><b>Yes <c>Yes</c></b>")