(self)
| 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) |