  class TestDisabledValidations(TestCase):
      """Tests on FormValidator with validation disabled by setting form to None"""
  
      def test_disabled_form_validator_returns_content_unchanged(self):
          """If the view's form attribute is None then FormValidator(view).validate(content)
          should just return the content unmodified."""
          class DisabledFormView(BaseView):
              form = None
  
          view = DisabledFormView()
 
</s> remove         class DisabledFormView(BaseView):
 </s> add         class DisabledFormResource(FormResource): </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         self.assertEqual(FormValidator(view).validate(content), content)
 </s> add         self.assertEqual(FormResource(view).validate_request(content, None), content) </s> remove class TestValidatorMixinInterfaces(TestCase):
    """Basic tests to ensure that the ValidatorMixin classes expose the expected interfaces"""

    def test_validator_mixin_interface(self):
        """Ensure the ValidatorMixin base class interface is as expected."""
        self.assertRaises(NotImplementedError, BaseValidator(None).validate, None)

 </s> add 
        """If the view's form attribute is None then FormValidator(view).validate_request(content, None)
  class TestDisabledValidations(TestCase):
      """Tests on FormValidator with validation disabled by setting form to None"""
  
      def test_disabled_form_validator_returns_content_unchanged(self):
        """If the view's form attribute is None then FormValidator(view).validate_request(content, None)
          should just return the content unmodified."""
          class DisabledFormView(BaseView):
              form = None
  
          view = DisabledFormView()
keep keep keep keep replace keep keep keep keep keep
 validators tests -> resources tests 
djangorestframework/tests/validators.py