  # from django.test import TestCase
  # from django import forms
  
  # from rest_framework.compat import RequestFactory
  # from rest_framework.views import View
  # from rest_framework.response import Response
  
  # import StringIO
  
 
</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
  # from django.test import TestCase
  # from django import forms
  
# from django.test.client import RequestFactory
  # from rest_framework.views import View
  # from rest_framework.response import Response
  
  # import StringIO
  
keep keep keep replace keep keep keep keep keep
 Remove RequestFactory from compat (Now 1.2 is not supported) 
rest_framework/tests/files.py