Skip to content

Commit

Permalink
containing test
Browse files Browse the repository at this point in the history
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
  • Loading branch information
kennethreitz committed Mar 3, 2018
1 parent 90de9b7 commit c7d07a0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_requests_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -159,4 +166,4 @@ def test_bare_js_eval():


if __name__ == '__main__':
test_class_seperation()
test_containing()

0 comments on commit c7d07a0

Please sign in to comment.