'Context variables can be retrieved from a list of contexts'

def test_inherited_context(self):

    response = self.client.get('/request_data_extended/', data={'foo': 'whiz'})
    self.assertEqual(response.context.__class__, ContextList)
    self.assertEqual(len(response.context), 2)
    self.assertIn('get-foo', response.context)
    self.assertEqual(response.context['get-foo'], 'whiz')
    self.assertEqual(response.context['data'], 'bacon')
    with self.assertRaises(KeyError) as cm:
        response.context['does-not-exist']
    self.assertEqual(cm.exception.args[0], 'does-not-exist')
