def simple(request):
    return {
        'simple': {
            'boolean': True,
            'list': [1, 2, 3],
        }
    }


def is_authenticated(request):
    return {
        'is_authenticated': request.user and request.user.is_authenticated
    }

@@ -152,32 +152,167 @@
 d(request):%0A    
+is_authenticated = request.user.is_authenticated%0A    if callable(is_authenticated):%0A        is_authenticated = is_authenticated()%0A%0A    
 return %7B%0A       
@@ -336,38 +336,8 @@
 d': 
-request.user and request.user.
 is_a
@@ -344,19 +344,20 @@
 uthenticated
+,
 %0A    %7D%0A

update test for django <2