def METHOD_NAME(monkeypatch):
    called = False
    def callee():
        nonlocal called
        called = True
    monkeypatch.setattr(update_check.update_check, 'apply_async', callee)
    gs = GlobalSettingsObject()
    gs.settings.update_check_email = 'test@example.org'
    gs.settings.update_check_last = now() - timedelta(hours=14)
    update_check.run_update_check(None)
    assert not called
    gs.settings.update_check_last = now() - timedelta(hours=24)
    update_check.run_update_check(None)
    assert called