Example #1
0
 def test_https_url(self):
     assert textparser.is_url('https://www.google.com')
Example #2
0
 def test_url_with_query_string(self):
     assert textparser.is_url('https://www.yplanapp.com?foo=1&bar=2')
Example #3
0
 def test_not_a_url(self):
     assert not textparser.is_url('foo')
     assert not textparser.is_url('bar')
     assert not textparser.is_url('waterboat')
Example #4
0
 def test_url_with_path(self):
     assert textparser.is_url('https://www.facebook.com/some/path/here')
 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_query_string(self):
     assert textparser.is_url('https://www.yplanapp.com?foo=1&bar=2')
 def test_url_with_path(self):
     assert textparser.is_url('https://www.facebook.com/some/path/here')
 def test_https_url(self):
     assert textparser.is_url('https://www.google.com')