#NEWLINE# def test_equals( self ) : #NEWLINE# #INDENT# equiv_pairs = [ ( RangeIndex ( 0 , 9 , 2 ) , RangeIndex ( 0 , 10 , 2 ) ) , ( RangeIndex ( 0 ) , RangeIndex ( 1 , ( - 1 ) , 3 ) ) , ( RangeIndex ( 1 , 2 , 3 ) , RangeIndex ( 1 , 3 , 4 ) ) , ( RangeIndex ( 0 , ( - 9 ) , ( - 2 ) ) , RangeIndex ( 0 , ( - 10 ) , ( - 2 ) ) ) ] #NEWLINE# for ( left , right ) in equiv_pairs : #NEWLINE# #INDENT# self . assertTrue ( left . equals ( right ) ) #NEWLINE# self . assertTrue ( right . equals ( left ) )