#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( ReplaceModule , self ) . setUp ( ) #NEWLINE# old_value = sys . modules . get ( self . name ) #NEWLINE# sys . modules [ self . name ] = self . new_value #NEWLINE# self . addCleanup ( self . _restore , old_value )