          """If validation fails due to a field error, ensure the response contains a single field error"""
          content = {'qwerty': ''}
          try:
              validator.validate_request(content, None)
          except ErrorResponse, response:
              self.assertEqual(response.raw_content, {'field_errors': {'qwerty': ['This field is required.']}})
          else:
              self.fail('ResourceException was not raised')
  
      def validation_failed_due_to_invalid_field_returns_appropriate_message(self, validator):
 
</s> remove         except ErrorResponse, response:
 </s> add         except ImmediateResponse, response: </s> remove         except ErrorResponse, response:
 </s> add         except ImmediateResponse, response: </s> remove         except ErrorResponse, response:
 </s> add         except ImmediateResponse, response: </s> remove         except ErrorResponse, response:
 </s> add         except ImmediateResponse, response: </s> remove             self.fail('ErrorResponse was not raised')
 </s> add             self.fail('ImmediateResponse was not raised')
        except ImmediateResponse, response:
          """If validation fails due to a field error, ensure the response contains a single field error"""
          content = {'qwerty': ''}
          try:
              validator.validate_request(content, None)
        except ImmediateResponse, response:
              self.assertEqual(response.raw_content, {'field_errors': {'qwerty': ['This field is required.']}})
          else:
              self.fail('ResourceException was not raised')
  
      def validation_failed_due_to_invalid_field_returns_appropriate_message(self, validator):
keep keep keep keep replace keep keep keep keep keep
 cleaned a bit Response/ResponseMixin code, added some documentation + renamed ErrorResponse to ImmediateResponse 
djangorestframework/tests/validators.py