'A template view can be customized to return extra context.'

def test_extra_template_params(self):

    response = self.client.get('/template/custom/bar/')
    self.assertEqual(response.status_code, 200)
    self.assertEqual(response.context['params'], {'foo': 'bar'})
    self.assertEqual(response.context['key'], 'value')
