#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . json_file = ( tempfile ( ) + '.json' ) #NEWLINE# fo = open ( self . json_file , 'w' ) #NEWLINE# for record in looney_records ( ) : #NEWLINE# #INDENT# json . dump ( record , fo ) #NEWLINE# fo . write ( '\n' ) #NEWLINE# #UNINDENT# fo . close ( ) #NEWLINE# self . csv_file = ( tempfile ( ) + '.csv' ) #NEWLINE# fo = open ( self . csv_file , 'w' ) #NEWLINE# write = csv . writer ( fo ) . writerow #NEWLINE# get = itemgetter ( 'first' , 'last' , 'type' ) #NEWLINE# for record in looney_records ( ) : #NEWLINE# #INDENT# write ( get ( record ) ) #NEWLINE# #UNINDENT# fo . close ( ) #NEWLINE# self . schema_file = tempfile ( ) #NEWLINE# fo = open ( self . schema_file , 'w' ) #NEWLINE# fo . write ( SCHEMA ) #NEWLINE# fo . close ( )