#NEWLINE# def test_save_named( self ) : #NEWLINE# #INDENT# uset = UploadSet ( 'files' ) #NEWLINE# uset . _config = Config ( '/uploads' ) #NEWLINE# tfs = TestingFileStorage ( filename = 'foo.txt' ) #NEWLINE# res = uset . save ( tfs , name = 'file_123.txt' ) #NEWLINE# assert ( res == 'file_123.txt' ) #NEWLINE# assert ( res . saved == '/uploads/file_123.txt' )