def chall_to_challb(chall, status):  # pylint: disable=redefined-outer-name
    kwargs = {
        "chall": chall,
        "uri": chall.typ + "_uri",
        "status": status,
    }

    if status == messages.STATUS_VALID:
        kwargs.update({"validated": datetime.datetime.now()})

    return messages.ChallengeBody(**kwargs)  # pylint: disable=star-args


# Pending ChallengeBody objects
Return a nonce.
dataset/ETHPy150Open letsencrypt/letsencrypt/certbot/tests/acme_util.py/chall_to_challb--crossover with--dataset/ETHPy150Open google/simian/src/simian/auth/base.py/Auth1.Nonce