#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# argv_patcher = mock . patch ( 'sys.argv' ) #NEWLINE# argv_patcher . start ( ) #NEWLINE# self . addCleanup ( self . stop ) #NEWLINE# stdin_patcher = mock . patch ( 'sys.stdin' , new = StringIO ( ) ) #NEWLINE# stdin_patcher . start ( ) #NEWLINE# self . addCleanup ( stdin_patcher . stop ) #NEWLINE# stdout_patcher = mock . patch ( 'sys.stdout' , new = StringIO ( ) ) #NEWLINE# stdout_patcher . start ( ) #NEWLINE# self . addCleanup ( stdout_patcher . stop )