#NEWLINE# def _verify_quota_usage( self , usage_info , expected_resource = None , expected_used = None , expected_dirty = None ) : #NEWLINE# #INDENT# self . assertEqual ( self . tenant_id , usage_info . tenant_id ) #NEWLINE# if expected_resource : #NEWLINE# #INDENT# self . assertEqual ( expected_resource , usage_info . resource ) #NEWLINE# #UNINDENT# if ( expected_dirty is not None ) : #NEWLINE# #INDENT# self . assertEqual ( expected_dirty , usage_info . dirty ) #NEWLINE# #UNINDENT# if ( usage_info is not None ) : #NEWLINE# #INDENT# self . assertEqual ( expected_used , usage_info . used )