#NEWLINE# def csv2geojson_test( self ) : #NEWLINE# #INDENT# ' Testing that CSV correctly translates to GeoJSON ' #NEWLINE# input_csv = ( self . data_input_folder + 'significantmonth.csv' ) #NEWLINE# output_geojson = ( self . data_output_folder + 'significantmonth.geojson' ) #NEWLINE# csv_to_geojson ( input_csv , output_geojson ) #NEWLINE# self . assertTrue ( ( os . path . exists ( output_geojson ) == 1 ) , msg = 'Current working directory is: , {0}' . format ( os . getcwd ( ) ) ) #NEWLINE# num_lines = sum ( ( 1 for line in open ( output_geojson ) ) ) #NEWLINE# self . assertTrue ( ( num_lines == 369 ) ) #NEWLINE# self . assertTrue ( validate_geojson_from_file ( output_geojson ) )