#NEWLINE# def test_dti_dti_deprecated_ops( self ) : #NEWLINE# #INDENT# dti = date_range ( '20130101' , periods = 3 ) #NEWLINE# dti_tz = date_range ( '20130101' , periods = 3 ) . tz_localize ( 'US/Eastern' ) #NEWLINE# with tm . assert_produces_warning ( FutureWarning ) : #NEWLINE# #INDENT# result = ( dti - dti ) #NEWLINE# expected = Index ( [ ] ) #NEWLINE# tm . assert_index_equal ( result , expected ) #NEWLINE# #UNINDENT# with tm . assert_produces_warning ( FutureWarning ) : #NEWLINE# #INDENT# result = ( dti + dti ) #NEWLINE# expected = dti #NEWLINE# tm . assert_index_equal ( result , expected ) #NEWLINE# #UNINDENT# with tm . assert_produces_warning ( FutureWarning ) : #NEWLINE# #INDENT# result = ( dti_tz - dti_tz ) #NEWLINE# expected = Index ( [ ] ) #NEWLINE# tm . assert_index_equal ( result , expected ) #NEWLINE# #UNINDENT# with tm . assert_produces_warning ( FutureWarning ) : #NEWLINE# #INDENT# result = ( dti_tz + dti_tz ) #NEWLINE# expected = dti_tz #NEWLINE# tm . assert_index_equal ( result , expected ) #NEWLINE# #UNINDENT# with tm . assert_produces_warning ( FutureWarning ) : #NEWLINE# #INDENT# result = ( dti_tz - dti ) #NEWLINE# expected = dti_tz #NEWLINE# tm . assert_index_equal ( result , expected ) #NEWLINE# #UNINDENT# with tm . assert_produces_warning ( FutureWarning ) : #NEWLINE# #INDENT# result = ( dti - dti_tz ) #NEWLINE# expected = dti #NEWLINE# tm . assert_index_equal ( result , expected ) #NEWLINE# #UNINDENT# with tm . assert_produces_warning ( FutureWarning ) : #NEWLINE# #INDENT# self . assertRaises ( TypeError , ( lambda : ( dti_tz + dti ) ) ) #NEWLINE# #UNINDENT# with tm . assert_produces_warning ( FutureWarning ) : #NEWLINE# #INDENT# self . assertRaises ( TypeError , ( lambda : ( dti + dti_tz ) ) )