diff --git a/tests/test_requests_html.py b/tests/test_requests_html.py index 05c2bf7..2aaee23 100644 --- a/tests/test_requests_html.py +++ b/tests/test_requests_html.py @@ -173,6 +173,15 @@ def test_absolute_links(url, link, expected): assert html.absolute_links.pop() == expected +@pytest.mark.parser +def test_parser(): + doc = """httpbin.org\n""" + html = HTML(html=doc) + + assert html.find('html') + assert html.element('a').text().strip() == 'httpbin.org' + + @pytest.mark.render def test_render(): r = get()