Пример #1
0
 def test_user_pwd_url(self):
     url = "http://*****:*****@example.com/baz"
     self.assertEqual(network.split_url_credentials(url), ("http://example.com/baz", "foo", "bar"))
Пример #2
0
 def test_simple_url(self):
     url = "http://example.com/"
     self.assertEqual(network.split_url_credentials(url), (url, None, None))