'Agree to the terms-of-service.
Agree to the terms-of-service in a Registration Resource.
:param regr: Registration Resource.
:type regr: `.RegistrationResource`
:returns: Updated Registration Resource.
:rtype: `.RegistrationResource`'

def agree_to_tos(self, regr):

    return self.update_registration(regr.update(body=regr.body.update(agreement=regr.terms_of_service)))
