#NEWLINE# def test_kwargs_inheritance( self , app , client ) : #NEWLINE# #INDENT# class BaseResource ( MethodResource ) : #NEWLINE# #INDENT# @ use_kwargs ( { #NEWLINE# #INDENT# 'name' : fields . Str ( ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def get( self , **kwargs ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# class ConcreteResource ( BaseResource ) : #NEWLINE# #INDENT# @ use_kwargs ( { #NEWLINE# #INDENT# 'genre' : fields . Str ( ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def get( self , **kwargs ) : #NEWLINE# #INDENT# return kwargs #NEWLINE# #UNINDENT# #UNINDENT# app . add_url_rule ( '/' , view_func = ConcreteResource . as_view ( 'concrete' ) ) #NEWLINE# res = client . get ( '/' , { #NEWLINE# #INDENT# 'name' : 'queen' , #NEWLINE# 'genre' : 'rock' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( res . json == { #NEWLINE# #INDENT# 'name' : 'queen' , #NEWLINE# 'genre' : 'rock' , #NEWLINE# #UNINDENT# } )