'Invalid data should still render the browsable API correctly.'

def test_parse_error_renderers_browsable_api(self):

    resp = self.client.post(u'/parseerror', data=u'foobar', content_type=u'application/json', HTTP_ACCEPT=u'text/html')
    self.assertEqual(resp[u'Content-Type'], u'text/html;    charset=utf-8')
    self.assertEqual(resp.status_code, status.HTTP_400_BAD_REQUEST)
