def verify(self, **kwargs):
        super(RegistrationResponse, self).verify(**kwargs)

        has_reg_uri = "registration_client_uri" in self
        has_reg_at = "registration_access_token" in self
        if has_reg_uri != has_reg_at:
            raise VerificationError((
                    "Only one of registration_client_uri"
                    " and registration_access_token present"), self)

        return True
Load a templatetag library on multiple Django versions.
dataset/ETHPy150Open rohe/pyoidc/src/oic/oic/message.py/RegistrationResponse.verify--crossover with--dataset/ETHPy150Open django-extensions/django-extensions/django_extensions/compat.py/load_tag_library