#NEWLINE# def test_invalid_remove( ) : #NEWLINE# #INDENT# mgr = MagicMock ( spec_set = LayerArtist ) #NEWLINE# mgrs = [ mgr ] #NEWLINE# model = LayerArtistModel ( mgrs ) #NEWLINE# remove = model . removeRow ( 1 ) #NEWLINE# assert ( not remove ) #NEWLINE# assert ( mgr in mgrs )