#NEWLINE# def test_schemas_inheritance( self , app , client , models , schemas ) : #NEWLINE# #INDENT# class BaseResource ( MethodResource ) : #NEWLINE# #INDENT# @ marshal_with ( schemas . BandSchema ) #NEWLINE# def get( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# class ConcreteResource ( BaseResource ) : #NEWLINE# #INDENT# @ marshal_with ( schemas . BandSchema ( only = ( 'genre' , ) ) , code = 201 ) #NEWLINE# def get( self , **kwargs ) : #NEWLINE# #INDENT# return ( models . Band ( 'slowdive' , 'shoegaze' ) , 201 ) #NEWLINE# #UNINDENT# #UNINDENT# app . add_url_rule ( '/' , view_func = ConcreteResource . as_view ( 'concrete' ) ) #NEWLINE# res = client . get ( '/' ) #NEWLINE# assert ( res . json == { #NEWLINE# #INDENT# 'genre' : 'shoegaze' , #NEWLINE# #UNINDENT# } )