#NEWLINE# def test_get_connection_with_proxy_uses_proxy_port( self ) : #NEWLINE# #INDENT# 'HTTP connection with proxy connects used proxy port.' #NEWLINE# self . set_http_proxy ( host = 'proxy.com' , port = None ) #NEWLINE# connection = self . fetch . _get_connection ( 'example.com' , 8888 , is_ssl = False ) #NEWLINE# self . assertEqual ( '2.2.2.2' , connection . host ) #NEWLINE# self . assertEqual ( 80 , connection . port )