コード例 #1
0
ファイル: test_fetcher.py プロジェクト: pombredanne/url2feed
 def test_extract_netloc_path__with_path_params_and_hash(self):
     self.assertEqual(
             extract_netloc_path('http://www.myhost.com/ultimate?params=true#hash'),
             ('www.myhost.com', '/ultimate'))
コード例 #2
0
ファイル: test_fetcher.py プロジェクト: pombredanne/url2feed
 def test_extract_netloc_path__with_path_and_hash(self):
     self.assertEqual(
             extract_netloc_path('http://www.myhost.com/#hash'),
             ('www.myhost.com', '/'))
コード例 #3
0
ファイル: test_fetcher.py プロジェクト: pombredanne/url2feed
 def test_extract_netloc_path__path_is_slash(self):
     self.assertEqual(
             extract_netloc_path('http://www.myhost.com/'),
             ('www.myhost.com', '/'))
コード例 #4
0
ファイル: test_fetcher.py プロジェクト: pombredanne/url2feed
 def test_extract_netloc_path__with_path_and_params(self):
     self.assertEqual(
             extract_netloc_path('http://www.myhost.com/test?params=true'),
             ('www.myhost.com', '/test'))
コード例 #5
0
ファイル: test_fetcher.py プロジェクト: pombredanne/url2feed
 def test_extract_netloc_path__no_path(self):
     self.assertEqual(
             extract_netloc_path('http://www.myhost.com'),
             ('www.myhost.com', ''))