              form = None
  
          view = DisabledFormView()
          content = {'qwerty':'uiop'}       
          self.assertEqual(FormValidator(view).validate(content), content)
  
      def test_disabled_form_validator_get_bound_form_returns_none(self):
          """If the view's form attribute is None on then
          FormValidator(view).get_bound_form(content) should just return None."""
          class DisabledFormView(BaseView):
 
</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         """If the view's form attribute is None then FormValidator(view).validate(content)
 </s> add         """If the view's form attribute is None then FormValidator(view).validate_request(content, None) </s> remove         class MockResource(Resource):
 </s> add         class MockResource(ModelResource):
        self.assertEqual(FormResource(view).validate_request(content, None), content)
              form = None
  
          view = DisabledFormView()
          content = {'qwerty':'uiop'}       
        self.assertEqual(FormResource(view).validate_request(content, None), content)
  
      def test_disabled_form_validator_get_bound_form_returns_none(self):
          """If the view's form attribute is None on then
          FormValidator(view).get_bound_form(content) should just return None."""
          class DisabledFormView(BaseView):
keep keep keep keep replace keep keep keep keep keep
 validators tests -> resources tests 
djangorestframework/tests/validators.py