#NEWLINE# def test_constructor_name( self ) : #NEWLINE# #INDENT# orig = RangeIndex ( 10 ) #NEWLINE# orig . name = 'original' #NEWLINE# copy = RangeIndex ( orig ) #NEWLINE# copy . name = 'copy' #NEWLINE# self . assertTrue ( orig . name , 'original' ) #NEWLINE# self . assertTrue ( copy . name , 'copy' ) #NEWLINE# new = Index ( copy ) #NEWLINE# self . assertTrue ( new . name , 'copy' ) #NEWLINE# new . name = 'new' #NEWLINE# self . assertTrue ( new . name , 'original' ) #NEWLINE# self . assertTrue ( new . name , 'copy' ) #NEWLINE# self . assertTrue ( new . name , 'new' )