(self)
| 1023 | self.assertEqual(tree.p.text, "Unneeded formatting is unneeded") |
| 1024 | |
| 1025 | def test_wrap(self): |
| 1026 | soup = self.soup("I wish I was bold.") |
| 1027 | value = soup.string.wrap(soup.new_tag("b")) |
| 1028 | self.assertEqual(value.decode(), "<b>I wish I was bold.</b>") |
| 1029 | self.assertEqual( |
| 1030 | soup.decode(), self.document_for("<b>I wish I was bold.</b>")) |
| 1031 | |
| 1032 | def test_wrap_extracts_tag_from_elsewhere(self): |
| 1033 | soup = self.soup("<b></b>I wish I was bold.") |
nothing calls this directly
no test coverage detected