diff options
Diffstat (limited to 'tests/test_tree.py')
-rw-r--r-- | tests/test_tree.py | 6 |
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é 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") |