#NEWLINE# def test_integration( self , app , client , models , schemas ) : #NEWLINE# #INDENT# @ app . route ( '/' ) #NEWLINE# @ use_kwargs ( { #NEWLINE# #INDENT# 'name' : fields . Str ( ) , #NEWLINE# 'genre' : fields . Str ( ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# @ marshal_with ( schemas . BandSchema ) #NEWLINE# def view( **kwargs ) : #NEWLINE# #INDENT# return models . Band ( ** kwargs ) #NEWLINE# #UNINDENT# res = client . get ( '/' , { #NEWLINE# #INDENT# 'name' : 'queen' , #NEWLINE# 'genre' : 'rock' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( self . json == { #NEWLINE# #INDENT# 'name' : 'queen' , #NEWLINE# 'genre' : 'rock' , #NEWLINE# #UNINDENT# } )