  
          In the absence of the View having an associated form then return None.
          """
          if request.method == method:
              data = request.DATA
              files = request.FILES
          else:
              data = None
              files = None
  
          with override_method(view, request, method) as request:
 
</s> remove         self.assertContains(resp.content, 'Mock GET View')
        self.assertEqual(resp.status_code, status.HTTP_400_)
 </s> add         self.assertIn('Mock Post', resp.content)
        self.assertEqual(resp.status_code, status.HTTP_400_BAD_REQUEST) </s> remove     url(r'^parseerror$', MockGETView.as_view(renderer_classes=[JSONRenderer, BrowsableAPIRenderer])),
 </s> add     url(r'^parseerror$', MockPOSTView.as_view(renderer_classes=[JSONRenderer, BrowsableAPIRenderer])),
            try:
                data = request.DATA
                files = request.FILES
            except ParseError:
                data = None
                files = None        
  
          In the absence of the View having an associated form then return None.
          """
          if request.method == method:
            try:
                data = request.DATA
                files = request.FILES
            except ParseError:
                data = None
                files = None        
            try:
                data = request.DATA
                files = request.FILES
            except ParseError:
                data = None
                files = None        
          else:
              data = None
              files = None
  
          with override_method(view, request, method) as request:
keep keep keep keep replace replace keep keep keep keep keep
 Catch and mask ParseErrors that occur during rendering of the BrowsableAPI. 
rest_framework/renderers.py