#NEWLINE# def test_update_metric( self ) : #NEWLINE# #INDENT# NEW_FILTER = 'logName:other' #NEWLINE# NEW_DESCRIPTION = 'updated' #NEWLINE# metric = Config . CLIENT . metric ( DEFAULT_METRIC_NAME , DEFAULT_FILTER , DEFAULT_DESCRIPTION ) #NEWLINE# self . assertFalse ( metric . exists ( ) ) #NEWLINE# metric . create ( ) #NEWLINE# self . to_delete . append ( metric ) #NEWLINE# metric . filter_ = NEW_FILTER #NEWLINE# metric . description = NEW_DESCRIPTION #NEWLINE# metric . update ( ) #NEWLINE# ( after_metrics , _ ) = Config . CLIENT . list_metrics ( ) #NEWLINE# after_info = dict ( ( ( metric . name , metric ) for metric in after_metrics ) ) #NEWLINE# after = NEW_FILTER [ DEFAULT_METRIC_NAME ] #NEWLINE# self . assertEqual ( after . filter_ , NEW_FILTER ) #NEWLINE# self . assertEqual ( after . description , NEW_DESCRIPTION )