When I use the Django test.client and I do something like:
class MyTestCase(TestCase):
def test_this(self):
c = self.client
response = c.get('/')
assert False, response.context['name']
I get an error:
assert False, response.context['name']
TypeError: 'NoneType' object is unsubscriptable
My only guess is something with using Jinja2 is preventing the context from showing up when I test.
Note this test is intentionally rigged to fail.