def test_template_params(self):
        response = self.client.get('/template/simple/bar/')
        self.assertEqual(response.status_code, 200)
        self.assertEqual(response.context['foo'], 'bar')
        self.assertTrue(isinstance(response.context['view'], View))
A generic template view passes kwargs as context.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/generic_views/base.py/TemplateViewTest.test_template_params