Why is response.context None in the following tests? I\'ve checked response.content and it is \'\'. if I remove the assertIsNotNone line I get a TypeError: \'NoneType\' object
I was having this issue and to fix it did the following in the setUp function:
from django.test.utils import setup_test_environment setup_test_environment()