(self)
| 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>" |
nothing calls this directly
no test coverage detected