          view = MockView()
          content = {'field1': 'example1', 'field2': 'example2'}
          try:
              MockResource(view).validate_request(content, None)
          except ErrorResponse, response:
              self.assertEqual(response.raw_content, {'errors': [MockForm.ERROR_TEXT]})
          else:
              self.fail('ErrorResponse was not raised')
  
  
 
</s> remove             self.fail('ErrorResponse was not raised')
 </s> add             self.fail('ImmediateResponse was not raised') </s> remove         except ErrorResponse, response:
 </s> add         except ImmediateResponse, response: </s> remove         except ErrorResponse, response:
 </s> add         except ImmediateResponse, response: </s> remove         except ErrorResponse, response:
 </s> add         except ImmediateResponse, response: </s> remove         except ErrorResponse, response:
 </s> add         except ImmediateResponse, response:
        except ImmediateResponse, response:
          view = MockView()
          content = {'field1': 'example1', 'field2': 'example2'}
          try:
              MockResource(view).validate_request(content, None)
        except ImmediateResponse, response:
              self.assertEqual(response.raw_content, {'errors': [MockForm.ERROR_TEXT]})
          else:
              self.fail('ErrorResponse was not raised')
  
  
keep keep keep keep replace keep keep keep keep keep
 cleaned a bit Response/ResponseMixin code, added some documentation + renamed ErrorResponse to ImmediateResponse 
djangorestframework/tests/validators.py