#NEWLINE# def test_add_subset_disambiguates_label( self ) : #NEWLINE# #INDENT# 'adding subset should disambiguate label if needed' #NEWLINE# s1 = Subset ( None ) #NEWLINE# self . data . add_subset ( s1 ) #NEWLINE# s1 . label = 'test_subset_label' #NEWLINE# s2 = Subset ( None ) #NEWLINE# s2 . label = 'test_subset_label' #NEWLINE# assert ( s2 . label == 'test_subset_label' ) #NEWLINE# self . data . add_subset ( s2 ) #NEWLINE# assert ( s2 . label != 'test_subset_label' )