      def setUp(self):       
          class MockForm(forms.Form):
              qwerty = forms.CharField(required=True)
  
          class MockFormValidator(FormValidatorMixin):
              form = MockForm
  
          class MockModelFormValidator(ModelFormValidatorMixin):
              form = MockForm
          
 
</s> remove 
        class MockModelFormValidator(ModelFormValidatorMixin):
 </s> add             validators = (FormValidator,)
 
        class MockModelFormView(object): </s> remove         
        self.MockFormValidator = MockFormValidator
        self.MockModelFormValidator = MockModelFormValidator       
 </s> add             validators = (ModelFormValidator,)
         
        self.MockFormView = MockFormView
        self.MockModelFormView = MockModelFormView        </s> remove     (ModelFormValidatorMixin should behave as FormValidatorMixin if form is set rather than relying on the default ModelForm)"""
 </s> add     (ModelFormValidator should behave as FormValidator if a form is set rather than relying on the default ModelForm)""" </s> remove         class MockValidator(FormValidatorMixin):
 </s> add         class MockView(object):
        class MockFormView(object):
      def setUp(self):       
          class MockForm(forms.Form):
              qwerty = forms.CharField(required=True)
  
        class MockFormView(object):
              form = MockForm
  
          class MockModelFormValidator(ModelFormValidatorMixin):
              form = MockForm
          
keep keep keep keep replace keep keep keep keep keep
 Lots of validator tests passing after refactor 
djangorestframework/tests/validators.py