#NEWLINE# def test_consumtion_data_arbitrary_overlap( records_arbitrary_overlap , recwarn ) : #NEWLINE# #INDENT# cd = ConsumptionData ( records_arbitrary_overlap , 'electricity' , 'kWh' , record_type = 'arbitrary' ) #NEWLINE# assert_allclose ( cd . data . values , [ np . nan , np . nan , 1 , np . nan , 0 , np . nan ] , rtol = RTOL , atol = ATOL ) #NEWLINE# assert ( cd . data . index [ 0 ] == datetime ( 2015 , 1 , 1 ) ) #NEWLINE# assert ( cd . data . index [ 5 ] == datetime ( 2015 , 2 , 1 ) ) #NEWLINE# w = recwarn . pop ( UserWarning ) #NEWLINE# assert issubclass ( w . category , UserWarning )