MCPcopy Index your code
hub / github.com/csev/py4e / test_prettify_can_encode_data

Method test_prettify_can_encode_data

code3/bs4/tests/test_tree.py:1486–1488  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1484 self.assertEqual(str, type(soup.prettify()))
1485
1486 def test_prettify_can_encode_data(self):
1487 soup = self.soup("<a></a>")
1488 self.assertEqual(bytes, type(soup.prettify("utf-8")))
1489
1490 def test_html_entity_substitution_off_by_default(self):
1491 markup = "<b>Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!</b>"

Callers

nothing calls this directly

Calls 2

soupMethod · 0.45
prettifyMethod · 0.45

Tested by

no test coverage detected