summaryrefslogtreecommitdiff
path: root/tests/test_tree.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-02-26 22:54:04 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2011-02-26 22:54:04 -0500
commit247785aa53358fa64e9bd5f799c4c9a1609489f0 (patch)
treeac3f92a60f5b9293c1971869fb90857bbfab94af /tests/test_tree.py
parentd7056f49c8bb3a448cec2f1a6f2de55e93c8e8d6 (diff)
Renamed replace_with_html_entities to substitute_html_entities.
Diffstat (limited to 'tests/test_tree.py')
-rw-r--r--tests/test_tree.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_tree.py b/tests/test_tree.py
index 249e7ae..f9163f1 100644
--- a/tests/test_tree.py
+++ b/tests/test_tree.py
@@ -830,14 +830,14 @@ class TestPersistence(SoupTest):
class TestSubstitutions(SoupTest):
- def test_entity_substitution(self):
+ def test_html_entity_substitution(self):
soup = self.soup(
u"<b>Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!</b>")
- encoded = soup.encode("utf-8", replace_with_html_entities=True)
+ encoded = soup.encode("utf-8", substitute_html_entities=True)
self.assertEquals(encoded,
self.document_for("<b>Sacr&eacute; bleu!</b>"))
- def test_entity_substitution_off_by_default(self):
+ def test_html_entity_substitution_off_by_default(self):
markup = u"<b>Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!</b>"
soup = self.soup(markup)
encoded = soup.b.encode("utf-8")