def has_api_scope_with_prefix(self, prefix):
        """
        Test if there is an API scope with the given prefix.

        :rtype: bool|None
        """
        if self._authorized_api_scopes is None:
            return None
        return any(
            x == prefix or x.startswith(prefix + '.')
            for x in self._authorized_api_scopes)
Test if there is an API scope with the given prefix.

        :rtype: bool|None