

def test_user_attrs(self):
    '\n        Test that the lazy objects returned behave just like the wrapped objects.\n        '
    self.client.login(username='super', password='secret')
    user = authenticate(username='super', password='secret')
    response = self.client.get('/auth_processor_user/')
    self.assertContains(response, 'unicode: super')
    self.assertContains(response, 'id: 100')
    self.assertContains(response, 'username: super')
    self.assertContains(response, 'url: /userpage/super/')
    query = (Q(user=user.context['user']) & Q(someflag=True))
    self.assertEqual(response.context['user'], user)
    self.assertEqual(user, response.context['user'])

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/auth/tests/context_processors.py AuthContextProcessorTests.test_user_attrs/VarMisuse@94/169 `response`->`user`