#NEWLINE# def test_netrc_success( self , MockOsPath ) : #NEWLINE# #INDENT# with patch ( 'pants.util.netrc.NetrcDb' ) as mock_netrc : #NEWLINE# #INDENT# instance = self . return_value #NEWLINE# instance . hosts = { #NEWLINE# #INDENT# 'host' : ( 'user' , 'user' , 'passw0rd' ) , #NEWLINE# #UNINDENT# } #NEWLINE# instance . authenticators . return_value = ( 'user' , 'user' , 'passw0rd' ) #NEWLINE# netrc = Netrc ( ) #NEWLINE# netrc . _ensure_loaded ( )