#NEWLINE# def testSomething( self ) : #NEWLINE# #INDENT# self . dir = self . mktemp ( ) #NEWLINE# os . mkdir ( self . dir ) #NEWLINE# self . f1 = os . path . join ( self . dir , 'one.cfg' ) #NEWLINE# writeFile ( self . f1 , '[fooSection]\nfooVar = val\n\n[barSection]\nbarVar = anotherVal\n' ) #NEWLINE# self . f2 = os . path . join ( self . dir , 'two.cfg' ) #NEWLINE# writeFile ( self . f2 , '[fooSection]\nfooVar = val2\n' ) #NEWLINE# self . cfg = config . loadConfig ( configFiles = [ self . f1 , self . f2 ] , reload = True ) #NEWLINE# val = self . cfg . get ( 'fooSection' , 'fooVar' ) #NEWLINE# self . assertEquals ( val , 'val2' ) #NEWLINE# val = self . cfg . get ( 'barSection' , 'barVar' ) #NEWLINE# self . assertEquals ( val , 'anotherVal' )