#NEWLINE# def test_insert( self ) : #NEWLINE# #INDENT# idx = RangeIndex ( 5 , name = 'Foo' ) #NEWLINE# result = idx [ 1 : 4 ] #NEWLINE# self . assertTrue ( idx [ 0 : 4 ] . equals ( result . insert ( 0 , idx [ 0 ] ) ) )