#NEWLINE# def test_consumption_data_interval_end_daily_all_freq_12H( records_interval_end_daily_all , fuel_type , unit_name ) : #NEWLINE# #INDENT# cd = ConsumptionData ( records_interval_end_daily_all , fuel_type , unit_name , freq = '12H' ) #NEWLINE# assert ( cd . freq_timedelta == timedelta ( seconds = ( ( 60 * 60 ) * 12 ) ) ) #NEWLINE# assert_allclose ( cd . data . values , [ 1 , np . nan , 2 , np . nan , 3 , np . nan , 4 , np . nan , 5 ] , rtol = RTOL , atol = ATOL ) #NEWLINE# assert ( fuel_type . data . index [ 0 ] == datetime ( 2014 , 12 , 31 , 12 ) )