MCPcopy Create free account
hub / github.com/gawel/pyquery / TestInnerText

Class TestInnerText

tests/test_browser.py:7–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6
7class 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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…