#NEWLINE# @ mock . patch ( 'six.moves.configparser.RawConfigParser' ) #NEWLINE# def test_username_api_key( self , config_parser ) : #NEWLINE# #INDENT# result = config . get_client_settings_config_file ( ) #NEWLINE# self . assertEqual ( result [ 'endpoint_url' ] , config_parser ( ) . get ( ) ) #NEWLINE# self . assertEqual ( result [ 'timeout' ] , config_parser ( ) . getfloat ( ) ) #NEWLINE# self . assertEqual ( result [ 'proxy' ] , config_parser ( ) . get ( ) ) #NEWLINE# self . assertEqual ( result [ 'username' ] , config_parser ( ) . get ( ) ) #NEWLINE# self . assertEqual ( result [ 'api_key' ] , config_parser ( ) . get ( ) )