          return Response({'foo': ['bar', 'baz']})
  
  
  class HTMLView(APIView):
      renderer_classes = (BrowsableAPIRenderer, )
  
      def get(self, request, **kwargs):
          return Response('text')
  
 
</s> remove             data = request.DATA
            files = request.FILES
 </s> add             try:
                data = request.DATA
                files = request.FILES
            except ParseError:
                data = None
                files = None         </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])),
class MockPOSTView(APIView):

    def post(self, request, **kwargs):
        return Response({'foo': request.DATA})


          return Response({'foo': ['bar', 'baz']})
  
  
class MockPOSTView(APIView):

    def post(self, request, **kwargs):
        return Response({'foo': request.DATA})


  class HTMLView(APIView):
      renderer_classes = (BrowsableAPIRenderer, )
  
      def get(self, request, **kwargs):
          return Response('text')
  
keep keep add keep keep keep keep keep keep
 Catch and mask ParseErrors that occur during rendering of the BrowsableAPI. 
rest_framework/tests/test_renderers.py