#NEWLINE# def test_delete_folder( self ) : #NEWLINE# #INDENT# parent = self . node_settings . get_root ( ) . append_folder ( 'Test' ) #NEWLINE# kids = [ ] #NEWLINE# for x in range ( 10 ) : #NEWLINE# #INDENT# kid = parent . append_file ( str ( x ) ) #NEWLINE# kid . save ( ) #NEWLINE# kids . append ( kid ) #NEWLINE# #UNINDENT# count = models . OsfStorageFileNode . find ( ) . count ( ) #NEWLINE# tcount = models . TrashedFileNode . find ( ) . count ( ) #NEWLINE# parent . delete ( ) #NEWLINE# assert_is ( models . OsfStorageFileNode . load ( parent . _id ) , None ) #NEWLINE# assert_equals ( ( count - 11 ) , models . OsfStorageFileNode . find ( ) . count ( ) ) #NEWLINE# assert_equals ( ( tcount + 11 ) , models . TrashedFileNode . find ( ) . count ( ) ) #NEWLINE# for kid in kids : #NEWLINE# #INDENT# assert_is ( models . OsfStorageFileNode . load ( kid . _id ) , None )