          
          class MockView(object):
              form = MockForm
          
          content = {'field1': 'example1', 'field2': 'example2'}
          try:
              FormValidator(view).validate(content)
          except ResponseException, exc:           
 
</s> remove             MockValidator().validate(content)
 </s> add             FormValidator(view).validate(content) </s> remove         class MockValidator(FormValidatorMixin):
 </s> add         class MockView(object): </s> remove         
        self.MockFormValidator = MockFormValidator
        self.MockModelFormValidator = MockModelFormValidator       
 </s> add             validators = (ModelFormValidator,)
         
        self.MockFormView = MockFormView
        self.MockModelFormView = MockModelFormView        </s> remove 
        class MockModelFormValidator(ModelFormValidatorMixin):
 </s> add             validators = (FormValidator,)
 
        class MockModelFormView(object): </s> remove         class MockFormValidator(FormValidatorMixin):
 </s> add         class MockFormView(object):
        view = MockView()
          
          class MockView(object):
              form = MockForm
          
        view = MockView()
          content = {'field1': 'example1', 'field2': 'example2'}
          try:
              FormValidator(view).validate(content)
          except ResponseException, exc:           
keep keep keep add keep keep keep keep
 Lots of validator tests passing after refactor 
djangorestframework/tests/validators.py