#NEWLINE# def test_identical( self ) : #NEWLINE# #INDENT# mi = self . index . copy ( ) #NEWLINE# mi2 = self . index . copy ( ) #NEWLINE# self . assertTrue ( mi . identical ( mi2 ) ) #NEWLINE# mi = mi . set_names ( [ 'new1' , 'new2' ] ) #NEWLINE# self . assertTrue ( mi . equals ( mi2 ) ) #NEWLINE# self . assertFalse ( mi . identical ( mi2 ) ) #NEWLINE# mi2 = mi2 . set_names ( [ 'new1' , 'new2' ] ) #NEWLINE# self . assertTrue ( mi . identical ( mi2 ) ) #NEWLINE# mi3 = Index ( mi . tolist ( ) , names = mi . names ) #NEWLINE# mi4 = Index ( mi . tolist ( ) , names = mi . names , tupleize_cols = False ) #NEWLINE# self . assertTrue ( mi . identical ( mi3 ) ) #NEWLINE# self . assertFalse ( mi . identical ( mi4 ) ) #NEWLINE# self . assertTrue ( mi . equals ( mi4 ) )