#NEWLINE# def test_definition_autogeneration( app , routes ) : #NEWLINE# #INDENT# spec = APISpec ( title = 'test api' , version = '0.1.0' , plugins = ( 'apispec.ext.marshmallow' , 'flask_resty.spec' ) ) #NEWLINE# spec . add_path ( view = routes [ 'fooList' ] ) #NEWLINE# assert ( 'FooSchema' in spec . to_dict ( ) [ 'definitions' ] )