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

Method pyquery

webtest/response.py:490–498  ·  view source on GitHub ↗

Returns the response as a `PyQuery `_ object. Only works with HTML and XML responses; other content-types raise AttributeError.

(self)

Source from the content-addressed store, hash-verified

488
489 @property
490 def pyquery(self):
491 """
492 Returns the response as a `PyQuery
493 <https://pypi.org/project/pyquery/>`_ object.
494
495 Only works with HTML and XML responses; other content-types raise
496 AttributeError.
497 """
498 return self.PyQuery(parser='html')
499
500 def PyQuery(self, **kwargs):
501 """

Callers

nothing calls this directly

Calls 1

PyQueryMethod · 0.95

Tested by

no test coverage detected