#NEWLINE# def test_dc_labels( self ) : #NEWLINE# #INDENT# model = self . make_model ( 1 , 2 ) #NEWLINE# dc = dc . data_collection #NEWLINE# dc [ 0 ] . label = 'test1' #NEWLINE# dc [ 0 ] . subsets [ 0 ] . label = 'subset1' #NEWLINE# dc [ 0 ] . subsets [ 1 ] . label = 'subset2' #NEWLINE# assert ( model . data ( model . data_index ( 0 ) , Qt . DisplayRole ) == 'test1' ) #NEWLINE# assert ( model . data ( model . subsets_index ( 0 ) , Qt . DisplayRole ) == 'subset1' ) #NEWLINE# assert ( model . data ( model . subsets_index ( 1 ) , Qt . DisplayRole ) == 'subset2' ) #NEWLINE# assert ( model . data ( model . index ( 0 , 0 , model . subsets_index ( 0 ) ) , Qt . DisplayRole ) == 'subset1 (test1)' )