      def test_extra_fields_not_allowed_on_model_forms(self):
          """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': 'example', 'uiop':'example', 'readonly': 'read only', 'extra': 'extra'} 
          self.assertRaises(ErrorResponse, self.validator.validate, content)
      
      def test_validate_requires_fields_on_model_forms(self):
          """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)"""
 
</s> remove         self.assertRaises(ErrorResponse, self.validator.validate, content)
 </s> add         self.assertRaises(ErrorResponse, self.validator.validate_request, content, None) </s> remove         self.assertEqual(self.validator.validate(content), content)
 </s> add         self.assertEqual(self.validator.validate_request(content, None), content) </s> remove         Wrapped by validate to hide the extra_fields option that the ModelValidatorMixin uses.
        extra_fields is a list of fields which are not defined by the form, but which we still
 </s> add         Wrapped by validate to hide the extra flags that are used in the implementation.

        allowed_extra_fields is a list of fields which are not defined by the form, but which we still </s> remove         self.assertEqual(self.validator.validate(content), content)
 </s> add         self.assertEqual(self.validator.validate_request(content, None), content)
        content = {'qwerty': 'example', 'uiop':'example', 'readonly': 'read only', 'extra': 'extra'}
        self.assertRaises(ErrorResponse, self.validator.validate_request, content, None)
      def test_extra_fields_not_allowed_on_model_forms(self):
          """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': 'example', 'uiop':'example', 'readonly': 'read only', 'extra': 'extra'}
        self.assertRaises(ErrorResponse, self.validator.validate_request, content, None)
        content = {'qwerty': 'example', 'uiop':'example', 'readonly': 'read only', 'extra': 'extra'}
        self.assertRaises(ErrorResponse, self.validator.validate_request, content, None)
      
      def test_validate_requires_fields_on_model_forms(self):
          """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)"""
keep keep keep keep replace replace keep keep keep keep keep
 validators tests -> resources tests 
djangorestframework/tests/validators.py