#NEWLINE# def test_subset_groups_remain_synced_after_restore( self ) : #NEWLINE# #INDENT# d = Data ( label = 'hist' , x = [ [ 1 , 2 ] , [ 2 , 3 ] ] ) #NEWLINE# dc = DataCollection ( [ d ] ) #NEWLINE# dc . new_subset_group ( ) #NEWLINE# app = GlueApplication ( d ) #NEWLINE# app2 = clone ( app ) #NEWLINE# sg = app2 . data_collection . subset_groups [ 0 ] #NEWLINE# assert ( sg . style . parent is sg ) #NEWLINE# sg . style . color = '#112233' #NEWLINE# assert ( sg . subsets [ 0 ] . style . color == '#112233' )