示例#1
0
 def test_url_accepts_unix_scheme_with_path(self):
     good_url = "unix://somepath"
     self.assertEqual(good_url, datatypes.url(good_url))
示例#2
0
 def test_url_accepts_urlparse_recognized_scheme_with_netloc(self):
     good_url = 'http://localhost:9001'
     self.assertEqual(datatypes.url(good_url), good_url)
示例#3
0
 def _callFUT(self, arg):
     return datatypes.url(arg)
示例#4
0
 def test_url_accepts_unix_scheme_with_path(self):
     good_url = "unix://somepath"
     self.assertEqual(good_url, datatypes.url(good_url))
示例#5
0
 def test_url_accepts_urlparse_recognized_scheme_with_netloc(self):
     good_url = "http://localhost:9001"
     self.assertEqual(datatypes.url(good_url), good_url)
示例#6
0
 def _callFUT(self, arg):
     return datatypes.url(arg)