()
| 353 | |
| 354 | |
| 355 | def test_callbacks(): |
| 356 | def func(artist): |
| 357 | func.counter += 1 |
| 358 | |
| 359 | func.counter = 0 |
| 360 | |
| 361 | art = martist.Artist() |
| 362 | oid = art.add_callback(func) |
| 363 | assert func.counter == 0 |
| 364 | art.pchanged() # must call the callback |
| 365 | assert func.counter == 1 |
| 366 | art.set_zorder(10) # setting a property must also call the callback |
| 367 | assert func.counter == 2 |
| 368 | art.remove_callback(oid) |
| 369 | art.pchanged() # must not call the callback anymore |
| 370 | assert func.counter == 2 |
| 371 | |
| 372 | |
| 373 | def test_set_signature(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…