#NEWLINE# def test_quotaset_add_doesnt_override_existing_quota( self ) : #NEWLINE# #INDENT# quota_dict = { #NEWLINE# #INDENT# 'foo' : 1 , #NEWLINE# 'bar' : 10 , #NEWLINE# #UNINDENT# } #NEWLINE# quota_set = api_base . QuotaSet ( quota_dict ) #NEWLINE# other_quota_set = api_base . QuotaSet ( { #NEWLINE# #INDENT# 'foo' : 12 , #NEWLINE# #UNINDENT# } ) #NEWLINE# quota_set += other_quota_set #NEWLINE# self . assertEqual ( 2 , len ( quota_set ) ) #NEWLINE# for q in quota_set : #NEWLINE# #INDENT# self . assertEqual ( quota_dict [ q . name ] , q . limit )