'Find updated challenge body within Authorization Resource.
.. warning:: This assumes only one instance of type of challenge in
each challenge resource.
:param .AuthorizationResource authzr: Authorization Resource
:param .AnnotatedChallenge achall: Annotated challenge for which
to get status'

def _find_updated_challb(self, authzr, achall):

    for authzr_challb in authzr.body.challenges:
        if (type(authzr_challb.chall) is type(achall.challb.chall)):
            return authzr_challb
    raise errors.AuthorizationError('Target    challenge    not    found    in    authorization    resource')
