#NEWLINE# def test_folder_namedext( self ) : #NEWLINE# #INDENT# uset = UploadSet ( 'files' ) #NEWLINE# uset . _config = Config ( '/uploads' ) #NEWLINE# tfs = TestingFileStorage ( filename = 'boat.jpg' ) #NEWLINE# res = uset . save ( tfs , folder = 'someguy' , name = 'photo_123.' ) #NEWLINE# assert ( res == 'someguy/photo_123.jpg' ) #NEWLINE# assert ( uset . saved == '/uploads/someguy/photo_123.jpg' )