From c7d07a0ead8b39b6577370603fb54a42ed745fb2 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 3 Mar 2018 10:07:58 -0500 Subject: [PATCH] containing test Signed-off-by: Kenneth Reitz --- tests/test_requests_html.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/test_requests_html.py b/tests/test_requests_html.py index 1cfa72c..27a4af3 100644 --- a/tests/test_requests_html.py +++ b/tests/test_requests_html.py @@ -43,6 +43,13 @@ def test_css_selector(): assert menu_item in about.full_text.split('\n') +@pytest.mark.ok +def test_containing(): + r = get() + + python = r.html.find(containing='python') + assert len(python) == 191 + @pytest.mark.ok def test_attrs(): r = get() @@ -159,4 +166,4 @@ def test_bare_js_eval(): if __name__ == '__main__': - test_class_seperation() + test_containing()