#NEWLINE# def test_consumption_periods_interval( consumption_data_kWh_interval ) : #NEWLINE# #INDENT# periods = consumption_data_kWh_interval . periods ( ) #NEWLINE# assert ( periods [ 0 ] . start == datetime ( 2015 , 1 , 1 ) ) #NEWLINE# assert ( consumption_data_kWh_interval [ 9 ] . end == datetime ( 2015 , 1 , 11 ) ) #NEWLINE# assert ( len ( periods ) == 10 )