def test_tricky_confparse():
 cp_data = confparse.ConfParse(file(os.path.join(os.path.dirname(__file__), 'test_data', 'sample_conf.xml')))
 assert_equal('org.apache.hadoop.examples.SleepJob', cp_data['mapred.mapper.class'])

def test_tricky_confparse ( ) : cp_data = confparse . ConfParse ( file ( os . path . join ( os . path . dirname ( __file__ ) , 'test_data' , 'sample_conf.xml' ) ) ) assert_equal ( 'org.apache.hadoop.examples.SleepJob' , cp_data [ 'mapred.mapper.class' ] )
we found that dealing with a file sometimes triggered the wrong results here .