#NEWLINE# def _setUp( self ) : #NEWLINE# #INDENT# if os . path . exists ( self . directory ) : #NEWLINE# #INDENT# tools . fail ( ( '%s already exists' % self . directory ) ) #NEWLINE# #UNINDENT# create_cmd = [ 'mkdir' , '-p' , self . directory ] #NEWLINE# delete_cmd = [ 'rm' , '-r' , self . directory ] #NEWLINE# utils . execute ( create_cmd , run_as_root = True ) #NEWLINE# self . addCleanup ( utils . execute , delete_cmd , run_as_root = True )