          }
          request = factory.post('/', form_data)
          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)
 
</s>
            'detail': 'JSON parse error - No JSON object could be decoded'
          }
          request = factory.post('/', form_data)
          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)
keep keep keep keep replace keep keep keep
 First passing test under p3k \o/
rest_framework/tests/views.py