#NEWLINE# def test_view( self ) : #NEWLINE# #INDENT# super ( TestRangeIndex , self ) . test_view ( ) #NEWLINE# i = RangeIndex ( name = 'Foo' ) #NEWLINE# i_view = i . view ( ) #NEWLINE# self . assertEqual ( i_view . name , 'Foo' ) #NEWLINE# i_view = i . view ( 'i8' ) #NEWLINE# tm . assert_numpy_array_equal ( i , i_view ) #NEWLINE# i_view = i . view ( RangeIndex ) #NEWLINE# tm . assert_index_equal ( i , i_view )