1919
2020here = os .path .dirname (__file__ )
2121# Self-signed cert file for 'localhost'
22- CERT_localhost = os .path .join (here , 'keycert.pem' )
22+ CERT_localhost = os .path .join (here , 'certdata' , ' keycert.pem' )
2323# Self-signed cert file for 'fakehostname'
24- CERT_fakehostname = os .path .join (here , 'keycert2.pem' )
24+ CERT_fakehostname = os .path .join (here , 'certdata' , ' keycert2.pem' )
2525
2626
2727# Loopback http server infrastructure
@@ -356,6 +356,7 @@ def stop_server(self):
356356 self .server .stop ()
357357 self .server = None
358358
359+ @unittest .expectedFailure # TODO: RUSTPYTHON
359360 @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
360361 def test_proxy_with_bad_password_raises_httperror (self ):
361362 self .proxy_digest_handler .add_password (self .REALM , self .URL ,
@@ -365,13 +366,15 @@ def test_proxy_with_bad_password_raises_httperror(self):
365366 self .opener .open ,
366367 self .URL )
367368
369+ @unittest .expectedFailure # TODO: RUSTPYTHON
368370 @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
369371 def test_proxy_with_no_password_raises_httperror (self ):
370372 self .digest_auth_handler .set_qop ("auth" )
371373 self .assertRaises (urllib .error .HTTPError ,
372374 self .opener .open ,
373375 self .URL )
374376
377+ @unittest .expectedFailure # TODO: RUSTPYTHON
375378 @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
376379 def test_proxy_qop_auth_works (self ):
377380 self .proxy_digest_handler .add_password (self .REALM , self .URL ,
0 commit comments