      def test_400_parse_error(self):
          request = factory.post('/', 'f00bar', content_type='application/json')
          response = self.view(request)
          expected = {
              'detail': u'JSON parse error - No JSON object could be decoded'
          }
          self.assertEquals(response.status_code, status.HTTP_400_BAD_REQUEST)
          self.assertEquals(sanitise_json_error(response.data), expected)
  
      def test_400_parse_error_tunneled_content(self):
 
</s> remove             'detail': u'JSON parse error - No JSON object could be decoded'
 </s> add             'detail': 'JSON parse error - No JSON object could be decoded' </s> remove             'detail': u'JSON parse error - No JSON object could be decoded'
 </s> add             'detail': 'JSON parse error - No JSON object could be decoded' </s> remove             'detail': u'JSON parse error - No JSON object could be decoded'
 </s> add             'detail': 'JSON parse error - No JSON object could be decoded' </s> remove         self.assertEquals(response.data, {'id': 4, 'text': u'foobar'})
 </s> add         self.assertEquals(response.data, {'id': 4, 'text': 'foobar'}) </s> remove         self.assertEquals(response.data, {'id': 4, 'text': u'foobar'})
 </s> add         self.assertEquals(response.data, {'id': 4, 'text': 'foobar'})
            'detail': 'JSON parse error - No JSON object could be decoded'
      def test_400_parse_error(self):
          request = factory.post('/', 'f00bar', content_type='application/json')
          response = self.view(request)
          expected = {
            'detail': 'JSON parse error - No JSON object could be decoded'
          }
          self.assertEquals(response.status_code, status.HTTP_400_BAD_REQUEST)
          self.assertEquals(sanitise_json_error(response.data), expected)
  
      def test_400_parse_error_tunneled_content(self):
keep keep keep keep replace keep keep keep keep keep
 First passing test under p3k \o/ 
rest_framework/tests/views.py