#NEWLINE# def test_ensime_launcher( self ) : #NEWLINE# #INDENT# launcher = ensime_launcher . EnsimeLauncher ( TestVim ( ) ) #NEWLINE# conf_path = '/tmp/myconf' #NEWLINE# ensime_launcher . Util . write_file ( conf_path , 'blah 42 :scala-version test :java-home /usr :cache-dir /tmp :java-flags none' ) #NEWLINE# conf = launcher . parse_conf ( conf_path ) #NEWLINE# assert ( conf [ 'blah' ] == '42' ) #NEWLINE# test_dir = ( os . environ [ 'HOME' ] + '/.config/classpath_project_ensime/test' ) #NEWLINE# ensime_launcher . Util . mkdir_p ( test_dir ) #NEWLINE# assert ( launcher . classpath_project_dir ( 'test' ) == test_dir ) #NEWLINE# assert ( launcher . build_sbt ( 'test' , 'file' ) is not None ) #NEWLINE# ensime_launcher . Util . write_file ( ( test_dir + '/classpath' ) , '' ) #NEWLINE# launcher . launch ( conf_path ) #NEWLINE# launcher . generate_classpath ( 'test' , 'classpath' ) #NEWLINE# try : #NEWLINE# #INDENT# launcher . load_classpath ( '42' , '' ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# None