I am trying to overwrite HTTP_POST to certain string of a request object inside a view:
with patch('django.core.handlers.wsgi.WSGIRequest') as request:
request.META = {'HTTP_HOST': 'www.abc.com'}
resp = self.client.get('/')
But obviously it's not working since it's complaining HTTP_POST
KeyError