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

Method test_xhtml_namespace_html_parser

tests/test_pyquery.py:865–870  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

863 self.assertEqual(repr(val), repr(expected))
864
865 def test_xhtml_namespace_html_parser(self):
866 expected = 'What'
867 d = pq(self.xhtml, parser='html')
868 d.xhtml_to_html()
869 val = d('div').text()
870 self.assertEqual(repr(val), repr(expected))
871
872 def test_remove_namespaces(self):
873 expected = 'What'

Callers

nothing calls this directly

Calls 2

xhtml_to_htmlMethod · 0.80
textMethod · 0.80

Tested by

no test coverage detected