  from django.conf.urls import url
  from django.contrib.auth import authenticate, login, logout
  from django.contrib.auth.models import User
  from django.contrib.sessions.middleware import SessionMiddleware
  from django.core.handlers.wsgi import WSGIRequest
  from django.test import TestCase
  from django.utils import six
  
  from rest_framework import status
  from rest_framework.authentication import SessionAuthentication
 
</s> remove import json
from io import BytesIO

 </s> add  </s> remove     BaseParser, FormParser, JSONParser, MultiPartParser
 </s> add     BaseParser, FormParser, MultiPartParser </s> remove from rest_framework.request import Empty, Request
 </s> add from rest_framework.request import Request </s> remove from rest_framework.settings import api_settings
 </s> add  </s> remove         self._method = Empty
 </s> add 
  from django.conf.urls import url
  from django.contrib.auth import authenticate, login, logout
  from django.contrib.auth.models import User
  from django.contrib.sessions.middleware import SessionMiddleware

  from django.test import TestCase
  from django.utils import six
  
  from rest_framework import status
  from rest_framework.authentication import SessionAuthentication
keep keep keep keep replace keep keep keep keep keep
 Fix request cloning, so method becomes set 
tests/test_request.py