| 5 | |
| 6 | |
| 7 | class TestInnerText(unittest.TestCase, TextExtractionMixin): |
| 8 | def _prepare_dom(self, html): |
| 9 | super()._prepare_dom(html) |
| 10 | self.pq = PyQuery(self.last_html) |
| 11 | |
| 12 | def _simple_test(self, html, expected_sq, expected_nosq, **kwargs): |
| 13 | self._prepare_dom(html) |
| 14 | text_sq = self.pq.text(squash_space=True, **kwargs) |
| 15 | text_nosq = self.pq.text(squash_space=False, **kwargs) |
| 16 | self.assertEqual(text_sq, expected_sq) |
| 17 | self.assertEqual(text_nosq, expected_nosq) |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…