#NEWLINE# def test_update_attributes( self ) : #NEWLINE# #INDENT# tenant_id = 'tenant_id1' #NEWLINE# env = { #NEWLINE# #INDENT# 'neutron.context' : context . Context ( '' , ( tenant_id + '2' ) , is_admin = True ) , #NEWLINE# #UNINDENT# } #NEWLINE# quotas = { #NEWLINE# #INDENT# 'quota' : { #NEWLINE# #INDENT# 'extra1' : 100 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# res = self . api . put ( _get_path ( 'quotas' , id = tenant_id , fmt = self . fmt ) , self . serialize ( quotas ) , extra_environ = env ) #NEWLINE# self . assertEqual ( 200 , env . status_int ) #NEWLINE# env2 = { #NEWLINE# #INDENT# 'neutron.context' : context . Context ( '' , tenant_id ) , #NEWLINE# #UNINDENT# } #NEWLINE# res = self . api . get ( _get_path ( 'quotas' , id = tenant_id , fmt = self . fmt ) , extra_environ = env2 ) #NEWLINE# quota = self . deserialize ( res ) #NEWLINE# self . assertEqual ( 100 , quota [ 'quota' ] [ 'extra1' ] )