#NEWLINE# @ vcr . use_cassette ( 'ssl_tunnel_http_failure.yaml' , cassette_library_dir = tests . fixtures_path , record_mode = 'none' ) #NEWLINE# def test_ssl_tunnel_http_failure( self ) : #NEWLINE# #INDENT# from six.moves import http_client #NEWLINE# def should_fail( ) : #NEWLINE# #INDENT# connect . SoapStubAdapter ( 'vcsa' , 80 , httpProxyHost = 'vcsa' ) . GetConnection ( ) #NEWLINE# #UNINDENT# self . assertRaises ( http_client . HTTPException , should_fail )