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