          """Validation on ModelForms may include property fields that exist on the Model to be included in the input."""
          content = {'qwerty': 'example', 'uiop': 'example', 'readonly': 'read only'}
          self.assertEqual(self.validator.validate_request(content, None), content)
  
      def test_property_fields_are_not_required_on_model_forms(self):
          """Validation on ModelForms does not require property fields that exist on the Model to be included in the input."""
          content = {'qwerty': 'example', 'uiop': 'example'}
          self.assertEqual(self.validator.validate_request(content, None), content)
  
      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)"""
 
</s> remove     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(ImmediateResponse, self.validator.validate_request, content, None)
 </s> add #     def test_property_fields_are_allowed_on_model_forms(self):
#         """Validation on ModelForms may include property fields that exist on the Model to be included in the input."""
#         content = {'qwerty': 'example', 'uiop': 'example', 'readonly': 'read only'}
#         self.assertEqual(self.validator.validate_request(content, None), content) </s> remove     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)"""
        content = {'readonly': 'read only'}
        self.assertRaises(ImmediateResponse, self.validator.validate_request, content, None)
 </s> add #     def test_property_fields_are_not_required_on_model_forms(self):
#         """Validation on ModelForms does not require property fields that exist on the Model to be included in the input."""
#         content = {'qwerty': 'example', 'uiop': 'example'}
#         self.assertEqual(self.validator.validate_request(content, None), content) </s> remove     def test_property_fields_are_allowed_on_model_forms(self):
        """Validation on ModelForms may include property fields that exist on the Model to be included in the input."""
        content = {'qwerty': 'example', 'uiop': 'example', 'readonly': 'read only'}
        self.assertEqual(self.validator.validate_request(content, None), content)
 </s> add #         class MockView(View):
#             resource = MockResource </s> remove     def test_validate_does_not_require_blankable_fields_on_model_forms(self):
        """Test standard ModelForm validation behaviour - fields with blank=True are not required."""
        content = {'qwerty': 'example', 'readonly': 'read only'}
        self.validator.validate_request(content, None)
 </s> add #     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(ImmediateResponse, self.validator.validate_request, content, None) </s> remove     def test_model_form_validator_uses_model_forms(self):
        self.assertTrue(isinstance(self.validator.get_bound_form(), forms.ModelForm))
 </s> add #     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)"""
#         content = {'readonly': 'read only'}
#         self.assertRaises(ImmediateResponse, self.validator.validate_request, content, None)

#     def test_validate_does_not_require_blankable_fields_on_model_forms(self):
#         """Test standard ModelForm validation behaviour - fields with blank=True are not required."""
#         content = {'qwerty': 'example', 'readonly': 'read only'}
#         self.validator.validate_request(content, None)

#     def test_model_form_validator_uses_model_forms(self):
#         self.assertTrue(isinstance(self.validator.get_bound_form(), forms.ModelForm))
#         self.validator = MockResource(MockView)
          """Validation on ModelForms may include property fields that exist on the Model to be included in the input."""
          content = {'qwerty': 'example', 'uiop': 'example', 'readonly': 'read only'}
          self.assertEqual(self.validator.validate_request(content, None), content)
  
#         self.validator = MockResource(MockView)
#         self.validator = MockResource(MockView)
#         self.validator = MockResource(MockView)
#         self.validator = MockResource(MockView)
  
      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)"""
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Drop out resources & mixins 
djangorestframework/tests/validators.py