#NEWLINE# def _load_case( self , filename , format_dict = None ) : #NEWLINE# #INDENT# format_dict = ( format_dict or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# fullpath = os . path . join ( os . path . dirname ( __file__ ) , 'data' , 'cases' , filename ) #NEWLINE# with open ( fullpath , 'r' ) as f : #NEWLINE# #INDENT# raw = f . read ( ) #NEWLINE# formatted = ( raw % format_dict ) #NEWLINE# return BiharCase . from_dump ( json . loads ( formatted ) )