  # """Tests for the mixin module"""
  # from django.test import TestCase
  # from rest_framework import status
  # from rest_framework.compat import RequestFactory
  # from django.contrib.auth.models import Group, User
  # from rest_framework.mixins import CreateModelMixin, PaginatorMixin, ReadModelMixin
  # from rest_framework.resources import ModelResource
  # from rest_framework.response import Response, ImmediateResponse
  # from rest_framework.tests.models import CustomUser
 
</s> remove # from rest_framework.compat import RequestFactory
 </s> add # from django.test.client import RequestFactory </s> remove # from rest_framework.compat import RequestFactory
 </s> add # from django.test.client import RequestFactory </s> remove #     >>> from rest_framework.compat import RequestFactory
 </s> add #     >>> from django.test.client import RequestFactory </s> remove from rest_framework.compat import RequestFactory
 </s> add from django.test.client import RequestFactory </s> remove from rest_framework.compat import RequestFactory
 </s> add from django.test.client import RequestFactory
# from django.test.client import RequestFactory
  # """Tests for the mixin module"""
  # from django.test import TestCase
  # from rest_framework import status
# from django.test.client import RequestFactory
  # from django.contrib.auth.models import Group, User
  # from rest_framework.mixins import CreateModelMixin, PaginatorMixin, ReadModelMixin
  # from rest_framework.resources import ModelResource
  # from rest_framework.response import Response, ImmediateResponse
  # from rest_framework.tests.models import CustomUser
keep keep keep replace keep keep keep keep keep
 Remove RequestFactory from compat (Now 1.2 is not supported) 
rest_framework/tests/mixins.py