#NEWLINE# def test_update_quotas_with_non_support_resource_returns_400( self ) : #NEWLINE# #INDENT# tenant_id = 'tenant_id1' #NEWLINE# env = { #NEWLINE# #INDENT# 'neutron.context' : context . Context ( '' , tenant_id , is_admin = True ) , #NEWLINE# #UNINDENT# } #NEWLINE# quotas = { #NEWLINE# #INDENT# 'quota' : { #NEWLINE# #INDENT# 'abc' : 100 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# res = self . api . put ( _get_path ( 'quotas' , id = tenant_id , fmt = self . fmt ) , self . serialize ( res ) , extra_environ = env , expect_errors = True ) #NEWLINE# self . assertEqual ( 400 , res . status_int )