  
              def clean(self):
                  if 'field1' in self.cleaned_data and 'field2' in self.cleaned_data:
                      raise forms.ValidationError(self.ERROR_TEXT)
                  return self.cleaned_data  #pragma: no cover
  
          class MockResource(FormResource):
              form = MockForm
  
          class MockView(View):
 
</s> remove             self.fail('ResourceException was not raised')  #pragma: no cover
 </s> add             self.fail('ResourceException was not raised') </s> remove         content = {'qwerty':'uiop'}
 </s> add         content = {'qwerty': 'uiop'} </s> remove         content = {'qwerty':'uiop'}
 </s> add         content = {'qwerty': 'uiop'} </s> remove         content = {'qwerty':'uiop'}
        self.assertEqual(ModelResource(view).get_bound_form(content), None)#
 </s> add         content = {'qwerty': 'uiop'}
        self.assertEqual(ModelResource(view).get_bound_form(content), None) </s> remove         content = {'qwerty':'example', 'uiop': 'example'}
 </s> add         content = {'qwerty': 'example', 'uiop': 'example'}
                return self.cleaned_data
  
              def clean(self):
                  if 'field1' in self.cleaned_data and 'field2' in self.cleaned_data:
                      raise forms.ValidationError(self.ERROR_TEXT)
                return self.cleaned_data
  
          class MockResource(FormResource):
              form = MockForm
  
          class MockView(View):
keep keep keep keep replace keep keep keep keep keep
 Fix tests to work on all supported configurations. 
djangorestframework/tests/validators.py