   
          class MockView(BaseView):
              resource = MockResource
         
          self.validator = ModelFormValidator(MockView)
  
  
      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'}
 
</s> remove         self.assertEqual(self.validator.validate(content), content)
 </s> add         self.assertEqual(self.validator.validate_request(content, None), content) </s> remove         self.assertEqual(self.validator.validate(content), content)
 </s> add         self.assertEqual(self.validator.validate_request(content, None), content) </s> remove         class MockResource(Resource):
 </s> add         class MockResource(ModelResource): </s> remove         self.validator.validate(content)
 </s> add         self.validator.validate_request(content, None) </s> remove         self.assertRaises(ErrorResponse, self.validator.validate, content)
 </s> add         self.assertRaises(ErrorResponse, self.validator.validate_request, content, None)
        self.validator = MockResource(MockView)
   
          class MockView(BaseView):
              resource = MockResource
         
        self.validator = MockResource(MockView)
  
  
      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'}
keep keep keep keep replace keep keep keep keep keep
 validators tests -> resources tests 
djangorestframework/tests/validators.py