#NEWLINE# def test_get_consumption_records_data( self ) : #NEWLINE# #INDENT# consumptions_data = api . _get_consumption_data ( self . minimal_consumption_df ) #NEWLINE# ( consumption_metadata , consumption_records ) = next ( consumptions_data ) #NEWLINE# assert ( consumption_metadata [ 'fuel_type' ] == 'E' ) #NEWLINE# assert ( consumption_metadata [ 'energy_unit' ] == 'KWH' ) #NEWLINE# assert ( consumption_metadata [ 'project_id' ] == 'ID_1' ) #NEWLINE# assert ( consumption_records [ 0 ] [ 'value' ] == 0.0 ) #NEWLINE# assert ( consumption_records [ 0 ] [ 'estimated' ] == True ) #NEWLINE# assert ( consumption_records [ 0 ] [ 'start' ] == '2015-01-01T00:00:00+0000' )