containing test

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-03-03 10:07:58 -05:00
parent 90de9b7ac5
commit c7d07a0ead
+8 -1
View File
@@ -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()