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.assertIsInstance(response.context['view'], View)
A generic template view passes kwargs as context.
dataset/ETHPy150Open django/django/tests/generic_views/test_base.py/TemplateViewTest.test_template_params