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