Two things I can see:

you should be inheriting from TestCase in django.test, not unittest.  
Second, you should find your answer at 
https://stackoverflow.com/questions/27136048/django-unit-test-response-context-is-none
 . 
I believe the attribute you're trying to access was deprecated in django 
1.8 and was probably removed in 1.11

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/36a1e72e-59d8-49d5-9764-2fdf5ec4e986%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to