=================================== FAILURES ===================================
_________________________________ test_pyquery _________________________________
def test_pyquery():
doc = \
"""
<!DOCTYPE html>
<html lang="en">
<head>
<title>title</title>
</head>
<body>
<table>
<tbody>
<tr id="too-much-before">
<th></th>
<td></td>
</tr>
<tr id="target">
<th>Hi There</th>
<td></td>
</tr>
<tr id="too-much-after">
<th></th>
<td></td>
</tbody>
</table>
</body>
</html>
"""
q = PyQuery(doc)
assert 'Hi There' in q('#target').html()
> assert 'too-much-after' not in q('#target').html()
E assert 'too-much-after' not in '\n <...td/>\n '
E 'too-much-after' is contained here:
E <tr id="too-much-after">
E <th/>
E <td/>
E </tr></tbody>
E </table>
E </body>...
E
E ...Full output truncated (4 lines hidden), use '-vv' to show
test_pyquery.py:32: AssertionError
=========================== short test summary info ============================
FAILED test_pyquery.py::test_pyquery - assert 'too-much-after' not in '\n ...
============================== 1 failed in 0.04s ===============================
See https://github.com/rjsparks/test_pyquery. On some platforms
q('#whatever').html()
returns html beyond the id-whatever element.