SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to mock a fake response, another way to do it is to simply instantiate an instance of the base HttpResponse class, like so:
from django.http.response import HttpResponseBase self.fake_response = HttpResponseBase()