#NEWLINE# def test_update_a_threshold( self ) : #NEWLINE# #INDENT# resource = self . mgr . get ( threshold_id = SERVICE_THRESHOLD1 [ 'threshold_id' ] ) #NEWLINE# resource . cost = 5.99 #NEWLINE# self . mgr . update ( ** resource . dirty_fields ) #NEWLINE# expect = [ 'PUT' , ( '/v1/rating/module_config/hashmap/thresholds/' + SERVICE_THRESHOLD1 [ 'threshold_id' ] ) , SERVICE_THRESHOLD1_PUT ] #NEWLINE# self . http_client . assert_called ( * expect )