#NEWLINE# def test_quotaset_add_method( self ) : #NEWLINE# #INDENT# quota_dict = { #NEWLINE# #INDENT# 'foo' : 1 , #NEWLINE# 'bar' : 10 , #NEWLINE# #UNINDENT# } #NEWLINE# other_quota_dict = { #NEWLINE# #INDENT# 'my_test' : 12 , #NEWLINE# #UNINDENT# } #NEWLINE# quota_set = api_base . QuotaSet ( other_quota_dict ) #NEWLINE# other_quota_set = api_base . QuotaSet ( other_quota_dict ) #NEWLINE# quota_set . add ( other_quota_set ) #NEWLINE# self . assertEqual ( 3 , len ( quota_set ) ) #NEWLINE# quota_dict . update ( other_quota_dict ) #NEWLINE# for q in quota_set : #NEWLINE# #INDENT# self . assertEqual ( quota_dict [ q . name ] , q . limit )