#NEWLINE# def test_check_syncs_to_visible( ) : #NEWLINE# #INDENT# m0 = LayerArtist ( Data ( label = 'test 0' ) , MagicMock ( ) ) #NEWLINE# m0 . artists = [ MagicMock ( ) ] #NEWLINE# mgrs = [ m0 ] #NEWLINE# model = LayerArtistModel ( mgrs ) #NEWLINE# m0 . visible = True #NEWLINE# assert m0 . visible #NEWLINE# assert ( model . data ( model . index ( 0 ) , Qt . CheckStateRole ) == Qt . Checked ) #NEWLINE# m0 . visible = False #NEWLINE# assert ( not model . visible ) #NEWLINE# assert ( model . data ( model . index ( 0 ) , Qt . CheckStateRole ) == Qt . Unchecked ) #NEWLINE# model . setData ( model . index ( 0 ) , Qt . Checked , Qt . CheckStateRole ) #NEWLINE# assert m0 . visible