MCPcopy
hub / github.com/csev/py4e / test_decode_contents

Method test_decode_contents

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

Source from the content-addressed store, hash-verified

1555 UnicodeEncodeError, soup.encode, "ascii", errors="strict")
1556
1557 def test_decode_contents(self):
1558 html = "<b>\N{SNOWMAN}</b>"
1559 soup = self.soup(html)
1560 self.assertEqual("\N{SNOWMAN}", soup.b.decode_contents())
1561
1562 def test_encode_contents(self):
1563 html = "<b>\N{SNOWMAN}</b>"

Callers

nothing calls this directly

Calls 2

soupMethod · 0.45
decode_contentsMethod · 0.45

Tested by

no test coverage detected