#NEWLINE# def test_metrics_cost_parse_setting( self ) : #NEWLINE# #INDENT# fake_cost = self . cost_classes [ 0 ] ( ) #NEWLINE# self . _check_parsing_result ( fake_cost , [ 'foo=1' ] , [ ( 'foo' , 1.0 ) ] ) #NEWLINE# self . _check_parsing_result ( fake_cost , [ 'foo=1' , 'bar=-2.1' ] , [ ( 'foo' , 1.0 ) , ( 'bar' , ( - 2.1 ) ) ] ) #NEWLINE# self . _check_parsing_result ( fake_cost , [ 'foo=a1' , 'bar=-2.1' ] , [ ( 'bar' , ( - 2.1 ) ) ] ) #NEWLINE# self . _check_parsing_result ( fake_cost , [ 'foo' , 'bar=-2.1' ] , [ ( 'bar' , ( - 2.1 ) ) ] ) #NEWLINE# self . _check_parsing_result ( fake_cost , [ '=5' , 'bar=-2.1' ] , [ ( 'bar' , ( - 2.1 ) ) ] )