def test_doesnt_include_domain(self): assert async_scrape.url_includes_domain( "/pages/products/coffee_one") == False assert async_scrape.url_includes_domain( "/page/") == False
def test_includes_domain(self): assert async_scrape.url_includes_domain( "http://pytest.org/latest/getting-started.html") == True