#NEWLINE# def _create_config( self , config ) : #NEWLINE# #INDENT# with open ( os . path . join ( safe_mkdtemp ( ) , 'test_config.ini' ) , 'w' ) as fp : #NEWLINE# #INDENT# for ( section , options ) in config . items ( ) : #NEWLINE# #INDENT# fp . write ( '[{}]\n' . format ( section ) ) #NEWLINE# for ( key , value ) in options . items ( ) : #NEWLINE# #INDENT# fp . write ( '{}: {}\n' . format ( key , value ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return Config . load ( configpaths = [ self . name ] )