          """If some (otherwise valid) content includes fields that are not in the form then validation should fail.
          It might be okay on normal form submission, but for Web APIs we oughta get strict, as it'll help show up
          broken clients more easily (eg submitting content with a misnamed field)"""
          content = {'qwerty': 'uiop', 'extra': 'extra'} 
          self.assertRaises(ResponseException, validator.validate, content)
  
      def validation_allows_extra_fields_if_explicitly_set(self, validator):
          """If we include an allowed_extra_fields paramater on _validate, then allow fields with those names."""
          content = {'qwerty': 'uiop', 'extra': 'extra'} 
          validator._validate(content, allowed_extra_fields=('extra',))
 
</s> remove         self.assertRaises(ResponseException, self.validator.validate, content)
 </s> add         self.assertRaises(ErrorResponse, self.validator.validate, content) </s> remove         self.assertRaises(ResponseException, validator.validate, content)
 </s> add         self.assertRaises(ErrorResponse, validator.validate, content) </s> remove         self.assertRaises(ResponseException, self.validator.validate, content)
 </s> add         self.assertRaises(ErrorResponse, self.validator.validate, content) </s> remove         except ResponseException, exc:           
 </s> add         except ErrorResponse, exc:            </s> remove         except ResponseException, exc:           
 </s> add         except ErrorResponse, exc:           
        self.assertRaises(ErrorResponse, validator.validate, content)
          """If some (otherwise valid) content includes fields that are not in the form then validation should fail.
          It might be okay on normal form submission, but for Web APIs we oughta get strict, as it'll help show up
          broken clients more easily (eg submitting content with a misnamed field)"""
          content = {'qwerty': 'uiop', 'extra': 'extra'} 
        self.assertRaises(ErrorResponse, validator.validate, content)
  
      def validation_allows_extra_fields_if_explicitly_set(self, validator):
          """If we include an allowed_extra_fields paramater on _validate, then allow fields with those names."""
          content = {'qwerty': 'uiop', 'extra': 'extra'} 
          validator._validate(content, allowed_extra_fields=('extra',))
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