#NEWLINE# def test_changing_names( self ) : #NEWLINE# #INDENT# level_names = [ level . name for level in view . index . levels ] #NEWLINE# self . check_level_names ( self . index , self . index . names ) #NEWLINE# view = self . index . view ( ) #NEWLINE# copy = self . index . copy ( ) #NEWLINE# shallow_copy = self . index . _shallow_copy ( ) #NEWLINE# new_names = [ ( name + 'a' ) for name in self . index . names ] #NEWLINE# self . index . names = new_names #NEWLINE# self . check_level_names ( self . index , new_names ) #NEWLINE# self . check_level_names ( view , level_names ) #NEWLINE# self . check_level_names ( copy , level_names ) #NEWLINE# self . check_level_names ( shallow_copy , level_names ) #NEWLINE# shallow_copy . names = [ ( name + 'c' ) for name in shallow_copy . names ] #NEWLINE# self . check_level_names ( self . index , new_names )