              qwerty = forms.CharField(required=True)
  
          class MockFormValidator(FormValidatorMixin):
              form = MockForm
  
          class MockModelFormValidator(ModelFormValidatorMixin):
              form = MockForm
          
          self.MockFormValidator = MockFormValidator
          self.MockModelFormValidator = MockModelFormValidator       
  
 
</s> remove         class MockFormValidator(FormValidatorMixin):
 </s> add         class MockFormView(object): </s> remove         
        self.MockFormValidator = MockFormValidator
        self.MockModelFormValidator = MockModelFormValidator       
 </s> add             validators = (ModelFormValidator,)
         
        self.MockFormView = MockFormView
        self.MockModelFormView = MockModelFormView        </s> remove             MockValidator().validate(content)
 </s> add             FormValidator(view).validate(content) </s> remove         class MockValidator(FormValidatorMixin):
 </s> add         class MockView(object):
            validators = (FormValidator,)
 
        class MockModelFormView(object):
              qwerty = forms.CharField(required=True)
  
          class MockFormValidator(FormValidatorMixin):
              form = MockForm
            validators = (FormValidator,)
 
        class MockModelFormView(object):
            validators = (FormValidator,)
 
        class MockModelFormView(object):
              form = MockForm
          
          self.MockFormValidator = MockFormValidator
          self.MockModelFormValidator = MockModelFormValidator       
  
keep keep keep keep replace replace keep keep keep keep keep
 Lots of validator tests passing after refactor 
djangorestframework/tests/validators.py