def METHOD_NAME(blueprint):
    @blueprint.task
    def my_task():
        return "foo"
    registered_task = blueprint.tasks["tests.unit.test_blueprints.my_task"]
    assert "foo" == my_task()
    assert "tests.unit.test_blueprints.my_task" == registered_task.name
    assert "default" == registered_task.queue
    assert registered_task is my_task
    assert registered_task.func is my_task.__wrapped__