#NEWLINE# def test_set_resources_quota_usage_dirty( self ) : #NEWLINE# #INDENT# self . _create_quota_usage ( 'goals' , 26 ) #NEWLINE# self . _create_quota_usage ( 'assists' , 11 ) #NEWLINE# self . _create_quota_usage ( 'bookings' , 3 ) #NEWLINE# self . assertEqual ( 2 , quota_api . set_resources_quota_usage_dirty ( self . context , [ 'goals' , 'bookings' ] , self . tenant_id ) ) #NEWLINE# usage_info_goals = quota_api . get_quota_usage_by_resource_and_tenant ( self . context , 'goals' , self . tenant_id ) #NEWLINE# usage_info_assists = quota_api . get_quota_usage_by_resource_and_tenant ( self . context , 'assists' , self . tenant_id ) #NEWLINE# usage_info_bookings = quota_api . get_quota_usage_by_resource_and_tenant ( self . context , 'bookings' , usage_info_goals . tenant_id ) #NEWLINE# self . _verify_quota_usage ( usage_info_goals , expected_dirty = True ) #NEWLINE# self . _verify_quota_usage ( usage_info_assists , expected_dirty = False ) #NEWLINE# self . _verify_quota_usage ( usage_info_bookings , expected_dirty = True )