def _should_use_token(self, view_func):
        if view_func is None or self._type not in ('exempt', 'include'):
            return False

        view = '{0}.{1}'.format(view_func.__module__, view_func.__name__)
        if self._type == 'exempt' and view in self._exempt_views:
            return False

        if self._type == 'include' and view not in self._include_views:
            return False

        url = u'{0}{1}'.format(request.script_root, request.path)
        if url.startswith(self._exempt_urls):
            return False

        return True
Given a view function, determine whether or not we should deliver a
dataset/ETHPy150Open maxcountryman/flask-seasurf/flask_seasurf.py/SeaSurf._should_use_token