  from djangorestframework.parsers import FormParser, MultiPartParser, \
      PlainTextParser, JSONParser
  from djangorestframework.response import Response
  from djangorestframework.request import Request
  from djangorestframework.views import View
  
 
</s> remove from djangorestframework.request import request_class_factory

class MockView(View):
    authentication = (UserLoggedInAuthentication,)
    def post(self, request):
        if request.POST.get('example') is not None:
            return Response(status=status.HTTP_200_OK)

        return Response(status=status.INTERNAL_SERVER_ERROR)

urlpatterns = patterns('',
    (r'^$', MockView.as_view()),
)

request_class = request_class_factory(RequestFactory().get('/'))
 </s> add  </s> remove from djangorestframework.request import request_class_factory
 </s> add from djangorestframework.request import Request </s> remove     - content automatically parsed according to `Content-Type` header, and available as :meth:`request.DATA<Request.DATA>`
 </s> add     - content automatically parsed according to `Content-Type` header, and available as :meth:`.DATA<Request.DATA>` </s> remove         Returns a custom request instance, with data and attributes copied from the
        original request.
 </s> add         Prepares the request for the request cycle. Returns a custom request instance,
        with data and attributes copied from the original request. </s> remove     def get_request(self):
 </s> add     def prepare_request(self, request):
from djangorestframework.request import Request
  from djangorestframework.parsers import FormParser, MultiPartParser, \
      PlainTextParser, JSONParser
from djangorestframework.request import Request
  from djangorestframework.response import Response
  from djangorestframework.request import Request
  from djangorestframework.views import View
  
keep add keep keep keep keep
 cleaned Request/Response/mixins to have similar interface 
djangorestframework/tests/request.py