#NEWLINE# def test_consumption_data_interval_start_daily_missing_value_freq_D( records_interval_start_daily_missing_value ) : #NEWLINE# #INDENT# cd = ConsumptionData ( records_interval_start_daily_missing_value , 'electricity' , 'kWh' , freq = 'D' ) #NEWLINE# assert ( records_interval_start_daily_missing_value . freq_timedelta == timedelta ( days = 1 ) ) #NEWLINE# assert_allclose ( cd . data . values , [ 1 , 2 , np . nan , 4 , 5 ] , rtol = RTOL , atol = ATOL ) #NEWLINE# assert ( cd . data . index [ 0 ] == datetime ( 2015 , 1 , 1 ) )