              @property
              def readonly(self):
                  return 'read only'
          
          class MockResource(Resource):
              model = MockModel
   
          class MockView(BaseView):
              resource = MockResource
         
 
</s> remove         self.validator = ModelFormValidator(MockView)
 </s> add         self.validator = MockResource(MockView) </s> remove         view = DisabledFormView()
 </s> add         class MockView(BaseView):
            resource = DisabledFormResource

        view = MockView() </s> remove         class DisabledFormView(BaseView):
 </s> add         class DisabledFormResource(FormResource): </s> remove         class DisabledFormView(BaseView):
 </s> add         class DisabledFormResource(FormResource): </s> remove         self.assertEqual(FormValidator(view).validate(content), content)
 </s> add         self.assertEqual(FormResource(view).validate_request(content, None), content)
        class MockResource(ModelResource):
              @property
              def readonly(self):
                  return 'read only'
          
        class MockResource(ModelResource):
              model = MockModel
   
          class MockView(BaseView):
              resource = MockResource
         
keep keep keep keep replace keep keep keep keep keep
 validators tests -> resources tests 
djangorestframework/tests/validators.py