#NEWLINE# def test_data( ) : #NEWLINE# #INDENT# ( model , mgrs ) = setup_model ( 3 ) #NEWLINE# idx = model . index ( 3 ) #NEWLINE# assert ( model . data ( idx , Qt . DisplayRole ) is None ) #NEWLINE# idx = model . index ( 1 ) #NEWLINE# assert ( model . data ( idx , Qt . DisplayRole ) == model . row_label ( 1 ) ) #NEWLINE# assert ( model . data ( idx , Qt . EditRole ) == model . row_label ( 1 ) )