              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')
  
  
  class TestFormValidation(TestCase):
      """Tests which check basic form validation.
      Also includes the same set of tests with a ModelFormValidator for which the form has been explicitly set.
 
</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: </s> remove         except ErrorResponse, response:
 </s> add         except ImmediateResponse, response:
            self.fail('ImmediateResponse was not raised')
              MockResource(view).validate_request(content, None)
          except ErrorResponse, response:
              self.assertEqual(response.raw_content, {'errors': [MockForm.ERROR_TEXT]})
          else:
            self.fail('ImmediateResponse was not raised')
  
  
  class TestFormValidation(TestCase):
      """Tests which check basic form validation.
      Also includes the same set of tests with a ModelFormValidator for which the form has been explicitly set.
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