  from django.test import TestCase
  from djangorestframework.compat import RequestFactory
  from djangorestframework.request import RequestMixin
  
  
  class TestMethodOverloading(TestCase): 
      def setUp(self):
          self.req = RequestFactory()
 
</s> remove from djangorestframework.request import RequestMixin
 </s> add from djangorestframework.mixins import RequestMixin </s> remove from djangorestframework.response import ResponseException
 </s> add from djangorestframework.response import ErrorResponse </s> remove from djangorestframework.emitters import EmitterMixin, BaseEmitter
 </s> add from djangorestframework.emitters import BaseEmitter
from djangorestframework.mixins import ResponseMixin </s> remove from djangorestframework.emitters import EmitterMixin
from djangorestframework.response import Response, ResponseException
from djangorestframework.request import RequestMixin, AuthMixin
 </s> add from djangorestframework.response import Response, ErrorResponse
from djangorestframework.mixins import RequestMixin, ResponseMixin, AuthMixin </s> remove from djangorestframework.response import NoContent, ResponseException
 </s> add from djangorestframework.response import ErrorResponse
from djangorestframework.mixins import RequestMixin
  from django.test import TestCase
  from djangorestframework.compat import RequestFactory
from djangorestframework.mixins import RequestMixin
  
  
  class TestMethodOverloading(TestCase): 
      def setUp(self):
          self.req = RequestFactory()
keep keep replace keep keep keep keep keep
 Rename mixins into Mixin class, rename ResponseException to ErrorResponse, remove NoContent 
djangorestframework/tests/methods.py