Пример #1
0
 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
 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
 def test_extract_netloc_path__path_is_slash(self):
     self.assertEqual(
             extract_netloc_path('http://www.myhost.com/'),
             ('www.myhost.com', '/'))
Пример #4
0
 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
 def test_extract_netloc_path__no_path(self):
     self.assertEqual(
             extract_netloc_path('http://www.myhost.com'),
             ('www.myhost.com', ''))