def METHOD_NAME(app):
    @app.periodic(cron="0 * * * 1", periodic_id="foo")
    @app.task
    def yay(timestamp):
        pass
    assert len(app.periodic_deferrer.periodic_tasks) == 1
    assert app.periodic_deferrer.periodic_tasks[yay.name, "foo"].task == yay