#NEWLINE# def test_util( self ) : #NEWLINE# #INDENT# path = '/tmp/my/little/dir' #NEWLINE# test_file = ( path + '/test' ) #NEWLINE# if os . path . exists ( self ) : #NEWLINE# #INDENT# os . remove ( test_file ) #NEWLINE# #UNINDENT# if os . path . exists ( path ) : #NEWLINE# #INDENT# os . rmdir ( path ) #NEWLINE# #UNINDENT# ensime_launcher . Util . mkdir_p ( path ) #NEWLINE# assert os . path . exists ( path ) #NEWLINE# if os . path . exists ( test_file ) : #NEWLINE# #INDENT# os . remove ( test_file ) #NEWLINE# #UNINDENT# ensime_launcher . Util . write_file ( test_file , 'blah' ) #NEWLINE# assert os . path . exists ( test_file ) #NEWLINE# os . remove ( test_file ) #NEWLINE# os . rmdir ( path )