          """If validation fails due to an invalid field, ensure the response contains a single field error"""
          content = {'qwerty': 'uiop', 'extra': 'extra'}
          try:
              validator.validate(content)
          except ResponseException, exc:           
              self.assertEqual(exc.response.raw_content, {'field-errors': {'extra': ['This field does not exist.']}})
          else:
              self.fail('ResourceException was not raised')  #pragma: no cover
      
      def validation_failed_due_to_multiple_errors_returns_appropriate_message(self, validator):
 
</s> remove         except ResponseException, exc:           
 </s> add         except ErrorResponse, exc:            </s> remove         except ResponseException, exc:           
 </s> add         except ErrorResponse, exc:            </s> remove         except ResponseException, exc:
 </s> add         except ErrorResponse, exc: </s> remove         except ResponseException, exc:           
 </s> add         except ErrorResponse, exc:            </s> remove         self.assertRaises(ResponseException, validator.validate, content)
 </s> add         self.assertRaises(ErrorResponse, validator.validate, content)
        except ErrorResponse, exc:           
          """If validation fails due to an invalid field, ensure the response contains a single field error"""
          content = {'qwerty': 'uiop', 'extra': 'extra'}
          try:
              validator.validate(content)
        except ErrorResponse, exc:           
              self.assertEqual(exc.response.raw_content, {'field-errors': {'extra': ['This field does not exist.']}})
          else:
              self.fail('ResourceException was not raised')  #pragma: no cover
      
      def validation_failed_due_to_multiple_errors_returns_appropriate_message(self, validator):
keep keep keep keep replace keep keep keep keep keep
 Rename mixins into Mixin class, rename ResponseException to ErrorResponse, remove NoContent 
djangorestframework/tests/validators.py