def setup_view(view, request, *args, **kwargs):
    view.request = request
    view.args = args
    view.kwargs = kwargs
    return view
Mimic ``as_view()``, but returns view instance.
dataset/ETHPy150Open benoitbryon/django-downloadview/django_downloadview/test.py/setup_view