@@ -72,7 +72,7 @@ def test_get_proxy_url_none(mock_proxy_settings_missing):
7272def test_get_proxy_url_http_auth (mock_proxy_auth_settings ):
7373 remote_connection = RemoteConnection ('http://remote' , keep_alive = False )
7474 proxy_url = remote_connection ._get_proxy_url ()
75- raw_proxy_url , basic_auth_string = remote_connection ._seperate_http_proxy_auth ()
75+ raw_proxy_url , basic_auth_string = remote_connection ._separate_http_proxy_auth ()
7676 assert proxy_url == "http://user:password@http_proxy.com:8080"
7777 assert raw_proxy_url == "http://http_proxy.com:8080"
7878 assert basic_auth_string == "user:password"
@@ -81,7 +81,7 @@ def test_get_proxy_url_http_auth(mock_proxy_auth_settings):
8181def test_get_proxy_url_https_auth (mock_proxy_auth_settings ):
8282 remote_connection = RemoteConnection ('https://remote' , keep_alive = False )
8383 proxy_url = remote_connection ._get_proxy_url ()
84- raw_proxy_url , basic_auth_string = remote_connection ._seperate_http_proxy_auth ()
84+ raw_proxy_url , basic_auth_string = remote_connection ._separate_http_proxy_auth ()
8585 assert proxy_url == "https://user:password@https_proxy.com:8080"
8686 assert raw_proxy_url == "https://https_proxy.com:8080"
8787 assert basic_auth_string == "user:password"
0 commit comments