  from __future__ import unicode_literals
  from django.conf import settings
  from django.http.multipartparser import parse_header
  from django.utils.datastructures import MultiValueDict
  from rest_framework import HTTP_HEADER_ENCODING
  from rest_framework import exceptions
 
</s> remove         self.assertEqual(request.DATA, None)
 </s> add         self.assertEqual(request.DATA, {}) </s> remove         Ensure request.DATA returns None for HEAD request.
 </s> add         Ensure request.DATA returns empty QueryDict for HEAD request. </s> remove         self.assertEqual(request.DATA, None)
 </s> add         self.assertEqual(request.DATA, {}) </s> remove         Ensure request.DATA returns None for GET request with no content.
 </s> add         Ensure request.DATA returns empty QueryDict for GET request.
from django.http import QueryDict
  from __future__ import unicode_literals
  from django.conf import settings
from django.http import QueryDict
  from django.http.multipartparser import parse_header
  from django.utils.datastructures import MultiValueDict
  from rest_framework import HTTP_HEADER_ENCODING
  from rest_framework import exceptions
keep add keep keep keep keep
 request.DATA should use empty QueryDict for no data, not None. 
rest_framework/request.py