#NEWLINE# def test_consumption_data_arbitrary_basic( records_arbitrary_basic , fuel_type , unit_name , record_type_arbitrary ) : #NEWLINE# #INDENT# cd = ConsumptionData ( records_arbitrary_basic , unit_name , unit_name , record_type = record_type_arbitrary ) #NEWLINE# assert ( cd . freq is None ) #NEWLINE# assert ( cd . freq_timedelta is None ) #NEWLINE# assert ( cd . pulse_value is None ) #NEWLINE# assert_allclose ( cd . data . values , [ np . nan , np . nan , 1 , np . nan , 0 , 0 , np . nan ] , rtol = RTOL , atol = ATOL ) #NEWLINE# assert ( cd . data . index [ 0 ] == datetime ( 2015 , 1 , 1 ) )