MCPcopy Create free account
hub / github.com/Pylons/webtest / test_pyquery

Method test_pyquery

tests/test_response.py:307–314  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

305 print(resp.lxml)
306
307 def test_pyquery(self):
308 app = webtest.TestApp(svg_application)
309 resp = app.get('/')
310 self.assertRaises(ValueError, lambda: resp.pyquery)
311 pq = resp.PyQuery(parser='xml', remove_namespaces=True)
312 assert len(pq('svg')) == 1
313 pq = resp.PyQuery(parser='xml')
314 assert len(pq('svg')) == 0
315
316 def test_html_attribute(self):
317 app = webtest.TestApp(links_app)

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
PyQueryMethod · 0.80

Tested by

no test coverage detected