  
  
  class TestContentParsingWithAuthentication(TestCase):
      urls = 'djangorestframework.tests.request'
  
      def setUp(self):
          self.csrf_client = Client(enforce_csrf_checks=True)
 
</s> remove         request = self.build_request('post', '/', data=form_data)
 </s> add         request = self.build_request('post', '/', data=form_data, parsers=parsers) </s> remove     def tearDown(self):
        request_class.parsers = ()

 </s> add  </s> remove     def tearDown(self):
        request_class.parsers = ()

 </s> add  </s> remove         return request_class(original_request)
 </s> add         return Request(original_request) </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 
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()),
)


  
  
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()),
)


  class TestContentParsingWithAuthentication(TestCase):
      urls = 'djangorestframework.tests.request'
  
      def setUp(self):
          self.csrf_client = Client(enforce_csrf_checks=True)
keep add keep keep keep keep keep
 cleaned Request/Response/mixins to have similar interface 
djangorestframework/tests/request.py