def test_logcb(handle): cb_log = mock.Mock() handle.logcb = cb_log db = handle.get_syncdbs()[0] db.update(False) cb_log.assert_called() assert handle.logcb == cb_log
def test_cb_download(handle): cb_dl = mock.Mock() handle.dlcb = cb_dl db = handle.get_syncdbs()[0] db.update(False) cb_dl.assert_called()