def test_not_a_url(self): assert not pytextparser.is_url("foo") assert not pytextparser.is_url("bar") assert not pytextparser.is_url("waterboat")
def test_url_with_path(self): assert pytextparser.is_url("https://www.facebook.com/some/path/here")
def test_url_with_query_string(self): assert pytextparser.is_url("https://www.yplanapp.com?foo=1&bar=2")
def test_https_url(self): assert pytextparser.is_url("https://www.google.com")