#NEWLINE# def test_example1_configfile( self ) : #NEWLINE# #INDENT# configfile = os . path . join ( self . tmpdir , 'config1.txt' ) #NEWLINE# outdir = os . path . join ( self . tmpdir , 'example1-result-2' ) #NEWLINE# configstr = textwrap . dedent ( ( '\n        [data]\n        filename = %s\n        discretize = 3\n\n        [learner]\n        type = greedy.GreedyLearner\n\n        [result]\n        format = html\n        outdir = %s\n        ' % ( testfile ( 'pebl-tutorial-data1.txt' ) , outdir ) ) ) #NEWLINE# with file ( configfile , 'w' ) as f : #NEWLINE# #INDENT# f . write ( configstr ) #NEWLINE# #UNINDENT# pebl_script . run ( configfile ) #NEWLINE# assert os . path . exists ( os . path . join ( outdir , 'data' , 'result.data.js' ) )