          
          view = MockView()
          content = {'field1': 'example1', 'field2': 'example2'}
          try:
              FormValidator(view).validate(content)
          except ErrorResponse, exc:           
              self.assertEqual(exc.response.raw_content, {'errors': [MockForm.ERROR_TEXT]})
          else:
              self.fail('ErrorResponse was not raised')  #pragma: no cover
  
 
</s> remove             validator.validate(content)
 </s> add             validator.validate_request(content, None) </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 DisabledFormView(BaseView):
 </s> add         class DisabledFormResource(FormResource):
            MockResource(view).validate_request(content, None)
          
          view = MockView()
          content = {'field1': 'example1', 'field2': 'example2'}
          try:
            MockResource(view).validate_request(content, None)
          except ErrorResponse, exc:           
              self.assertEqual(exc.response.raw_content, {'errors': [MockForm.ERROR_TEXT]})
          else:
              self.fail('ErrorResponse was not raised')  #pragma: no cover
  
keep keep keep keep replace keep keep keep keep keep
 validators tests -> resources tests 
djangorestframework/tests/validators.py