  from rest_framework.compat import smart_text
  from rest_framework.compat import yaml
  from rest_framework.settings import api_settings
  from rest_framework.request import is_form_media_type, override_method
  from rest_framework.utils import encoders
  from rest_framework.utils.breadcrumbs import get_breadcrumbs
  from rest_framework import exceptions, status, VERSION
 
</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])), </s> remove             data = request.DATA
            files = request.FILES
 </s> add             try:
                data = request.DATA
                files = request.FILES
            except ParseError:
                data = None
                files = None        
from rest_framework.exceptions import ParseError
  from rest_framework.compat import smart_text
  from rest_framework.compat import yaml
from rest_framework.exceptions import ParseError
  from rest_framework.settings import api_settings
  from rest_framework.request import is_form_media_type, override_method
  from rest_framework.utils import encoders
  from rest_framework.utils.breadcrumbs import get_breadcrumbs
  from rest_framework import exceptions, status, VERSION
keep add keep keep keep keep keep
 Catch and mask ParseErrors that occur during rendering of the BrowsableAPI. 
rest_framework/renderers.py