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