'Ensure validation errors return a proper error response instead of
an internal server error.'

@override_settings(FILTERS_STRICTNESS=STRICTNESS.RAISE_VALIDATION_ERROR)
def test_strictness_validation_error(self):

    view = FilterFieldsRootView.as_view()
    request = factory.get(u'/?decimal=foobar')
    response = view(request).render()
    self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
    self.assertEqual(response.data, {u'decimal': [u'Enter    a    number.']})
