#NEWLINE# def test_url_generated( self ) : #NEWLINE# #INDENT# app = Flask ( __name__ ) #NEWLINE# app . config . update ( UPLOADED_FILES_DEST = '/uploads' ) #NEWLINE# uset = UploadSet ( 'files' ) #NEWLINE# configure_uploads ( app , uset ) #NEWLINE# with app . test_request_context ( ) : #NEWLINE# #INDENT# url = uset . url ( 'foo.txt' ) #NEWLINE# gen = url_for ( '_uploads.uploaded_file' , setname = 'files' , filename = 'foo.txt' , _external = True ) #NEWLINE# assert ( url == gen )