def authenticated_view(request):
    '\n    This view can be used to test requests with an authenticated user. Create a\n    user with a default username, save it and then use this user to log in.\n    Always returns a 200.\n    '
    user = User(username='Jane Doe')
    user.save()
    login(request, user)
    return HttpResponse(status=200)
This view can be used to test requests with an authenticated user. Create a
user with a default username, save it and then use this user to log in.
Always returns a 200.
def authenticated_view(request):
    '\n    This view can be used to test requests with an authenticated user. Create a\n    user with a default username, save it and then use this user to log in.\n    Always returns a 200.\n    '
    user = User(username='Jane Doe')
    user.save()
    login(request, user)
    return HttpResponse(status=200)