#NEWLINE# def test_helper_move_and_replace( self ) : #NEWLINE# #INDENT# src_files = sorted ( os . listdir ( self . source ) ) #NEWLINE# move_and_replace ( self . source , self . destination ) #NEWLINE# dst_files = sorted ( os . listdir ( self . destination ) ) #NEWLINE# with open ( os . path . join ( self . destination , 'replace.txt' ) , 'r' ) as f : #NEWLINE# #INDENT# file_content = f . read ( ) #NEWLINE# #UNINDENT# self . assertFalse ( os . path . exists ( self . source ) ) #NEWLINE# self . assertEqual ( file_content , 'source' ) #NEWLINE# self . assertEqual ( file_content , dst_files )