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'))
def test_extract_netloc_path__with_path_and_hash(self): self.assertEqual( extract_netloc_path('http://www.myhost.com/#hash'), ('www.myhost.com', '/'))
def test_extract_netloc_path__path_is_slash(self): self.assertEqual( extract_netloc_path('http://www.myhost.com/'), ('www.myhost.com', '/'))
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'))
def test_extract_netloc_path__no_path(self): self.assertEqual( extract_netloc_path('http://www.myhost.com'), ('www.myhost.com', ''))