Exemple #1
0
def test_soup_get_cls_method():
    soup = Soup.get("www.google.com")
    if "<!doctype html>" not in str(soup).lower():
        raise AssertionError
Exemple #2
0
def test_soup_get_cls_method():
    soup = Soup.get("www.google.com")
    assert "<!doctype html>" in str(soup).lower()