From 247785aa53358fa64e9bd5f799c4c9a1609489f0 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Sat, 26 Feb 2011 22:54:04 -0500 Subject: Renamed replace_with_html_entities to substitute_html_entities. --- tests/test_tree.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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"Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!") - 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("Sacré bleu!")) - def test_entity_substitution_off_by_default(self): + def test_html_entity_substitution_off_by_default(self): markup = u"Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!" soup = self.soup(markup) encoded = soup.b.encode("utf-8") -- cgit v1.2.3