mirror of
https://github.com/kennethreitz/requests-html.git
synced 2026-06-05 23:00:20 +00:00
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user