          except ErrorResponse, exc:
              self.assertEqual(exc.response.raw_content, {'field_errors': {'qwerty': ['This field is required.'],
                                                                           'extra': ['This field does not exist.']}})
          else:
              self.fail('ResourceException was not raised')  #pragma: no cover
  
      # Tests on FormResource
  
      def test_form_validation_returns_content_unchanged_if_already_valid_and_clean(self):
          validator = self.MockFormResource(self.MockFormView())
 
</s> remove                 return self.cleaned_data  #pragma: no cover
 </s> add                 return self.cleaned_data </s> remove         content = {'qwerty':'uiop'}
 </s> add         content = {'qwerty': 'uiop'} </s> remove         content = {'qwerty': 'example', 'uiop':'example', 'readonly': 'read only', 'extra': 'extra'}
 </s> add         content = {'qwerty': 'example', 'uiop': 'example', 'readonly': 'read only', 'extra': 'extra'} </s> remove         content = {'qwerty':'uiop'}
 </s> add         content = {'qwerty': 'uiop'} </s> remove         content = {'qwerty':'example', 'uiop': 'example', 'readonly': 'read only'}
 </s> add         content = {'qwerty': 'example', 'uiop': 'example', 'readonly': 'read only'}
            self.fail('ResourceException was not raised')
          except ErrorResponse, exc:
              self.assertEqual(exc.response.raw_content, {'field_errors': {'qwerty': ['This field is required.'],
                                                                           'extra': ['This field does not exist.']}})
          else:
            self.fail('ResourceException was not raised')
  
      # Tests on FormResource
  
      def test_form_validation_returns_content_unchanged_if_already_valid_and_clean(self):
          validator = self.MockFormResource(self.MockFormView())
keep keep keep keep replace keep keep keep keep keep
 Fix tests to work on all supported configurations. 
djangorestframework/tests/validators.py