#NEWLINE# @ patch ( 'sys.stderr' ) #NEWLINE# def setUp( self , * args ) : #NEWLINE# #INDENT# self . cli = Cli ( ) #NEWLINE# sys . argv [ 1 : ] = [ ] #NEWLINE# self . fake_app_path = os . path . join ( fullpath ( __file__ ) , 'app-path' ) #NEWLINE# os . system ( 'rm -rf {0}' . format ( os . path . join ( self . fake_app_path , 'pid/' ) ) ) #NEWLINE# self . cli . options = parser . _parse_args ( ) #NEWLINE# self . cli . options . app_path = self . fake_app_path #NEWLINE# CommandInit ( ) . run ( FakeOptions ( app_path = args . fake_app_path ) )