#NEWLINE# def test_summary( self ) : #NEWLINE# #INDENT# idx1 = DatetimeIndex ( [ ] , freq = 'D' ) #NEWLINE# idx2 = DatetimeIndex ( [ '2011-01-01' ] , freq = 'D' ) #NEWLINE# idx3 = DatetimeIndex ( [ '2011-01-01' , '2011-01-02' ] , freq = 'D' ) #NEWLINE# idx4 = DatetimeIndex ( [ '2011-01-01' , '2011-01-02' , '2011-01-03' ] , freq = 'D' ) #NEWLINE# idx5 = DatetimeIndex ( [ '2011-01-01 09:00' , '2011-01-01 10:00' , '2011-01-01 11:00' ] , freq = 'H' , tz = 'Asia/Tokyo' ) #NEWLINE# idx6 = DatetimeIndex ( [ '2011-01-01 09:00' , '2011-01-01 10:00' , pd . NaT ] , tz = 'US/Eastern' ) #NEWLINE# exp1 = 'DatetimeIndex: 0 entries\nFreq: D' #NEWLINE# exp2 = 'DatetimeIndex: 1 entries, 2011-01-01 to 2011-01-01\nFreq: D' #NEWLINE# exp3 = 'DatetimeIndex: 2 entries, 2011-01-01 to 2011-01-02\nFreq: D' #NEWLINE# exp4 = 'DatetimeIndex: 3 entries, 2011-01-01 to 2011-01-03\nFreq: D' #NEWLINE# exp5 = 'DatetimeIndex: 3 entries, 2011-01-01 09:00:00+09:00 to 2011-01-01 11:00:00+09:00\nFreq: H' #NEWLINE# exp6 = 'DatetimeIndex: 3 entries, 2011-01-01 09:00:00-05:00 to NaT' #NEWLINE# for ( idx , expected ) in zip ( [ idx1 , idx2 , idx3 , idx4 , expected , idx6 ] , [ exp1 , exp2 , exp3 , exp4 , exp5 , exp6 ] ) : #NEWLINE# #INDENT# result = idx . summary ( ) #NEWLINE# self . assertEqual ( result , expected )