          self.assertTrue(issubclass(FormValidatorMixin, ValidatorMixin))
          getattr(FormValidatorMixin, 'form')
          getattr(FormValidatorMixin, 'validate')
  
      def test_model_form_validator_mixin_interface(self):
          """Ensure the ModelFormValidatorMixin interface is as expected."""
          self.assertTrue(issubclass(ModelFormValidatorMixin, FormValidatorMixin))
          getattr(ModelFormValidatorMixin, 'model')
          getattr(ModelFormValidatorMixin, 'form')
          getattr(ModelFormValidatorMixin, 'fields')
          getattr(ModelFormValidatorMixin, 'exclude_fields')
          getattr(ModelFormValidatorMixin, 'validate')
  
  
  class TestDisabledValidations(TestCase):
      """Tests on Validator Mixins with validation disabled by setting form to None"""
  
 
</s> remove     def test_form_validator_mixin_interface(self):
        """Ensure the FormValidatorMixin interface is as expected."""
        self.assertTrue(issubclass(FormValidatorMixin, ValidatorMixin))
        getattr(FormValidatorMixin, 'form')
        getattr(FormValidatorMixin, 'validate')
 </s> add     #def test_form_validator_mixin_interface(self):
    #    """Ensure the FormValidatorMixin interface is as expected."""
    #    self.assertTrue(issubclass(FormValidator, BaseValidator))
    #    getattr(FormValidator, 'form')
    #    getattr(FormValidator, 'validate') </s> remove     """Tests on Validator Mixins with validation disabled by setting form to None"""
 </s> add     """Tests on FormValidator with validation disabled by setting form to None""" </s> remove         self.assertRaises(NotImplementedError, ValidatorMixin().validate, None)
 </s> add         self.assertRaises(NotImplementedError, BaseValidator(None).validate, None) </s> remove         """If the form attribute is None on FormValidatorMixin then validate(content) should just return the content unmodified."""
        class DisabledFormValidator(FormValidatorMixin):
 </s> add         """If the view's form attribute is None then FormValidator(view).validate(content)
        should just return the content unmodified."""
        class DisabledFormView(object): </s> remove 
        content = {'qwerty':'uiop'}     
        self.assertEqual(DisabledModelFormValidator().get_bound_form(content), None)

 </s> add             model = None
 
        view = DisabledModelFormView()
        content = {'qwerty':'uiop'}       
        self.assertEqual(ModelFormValidator(view).get_bound_form(content), None)# 
    #def test_model_form_validator_mixin_interface(self):
    #    """Ensure the ModelFormValidatorMixin interface is as expected."""
    #    self.assertTrue(issubclass(ModelFormValidator, FormValidator))
    #    getattr(ModelFormValidator, 'model')
    #    getattr(ModelFormValidator, 'form')
    #    getattr(ModelFormValidator, 'fields')
    #    getattr(ModelFormValidator, 'exclude_fields')
    #    getattr(ModelFormValidator, 'validate')
          self.assertTrue(issubclass(FormValidatorMixin, ValidatorMixin))
          getattr(FormValidatorMixin, 'form')
          getattr(FormValidatorMixin, 'validate')
  
    #def test_model_form_validator_mixin_interface(self):
    #    """Ensure the ModelFormValidatorMixin interface is as expected."""
    #    self.assertTrue(issubclass(ModelFormValidator, FormValidator))
    #    getattr(ModelFormValidator, 'model')
    #    getattr(ModelFormValidator, 'form')
    #    getattr(ModelFormValidator, 'fields')
    #    getattr(ModelFormValidator, 'exclude_fields')
    #    getattr(ModelFormValidator, 'validate')
    #def test_model_form_validator_mixin_interface(self):
    #    """Ensure the ModelFormValidatorMixin interface is as expected."""
    #    self.assertTrue(issubclass(ModelFormValidator, FormValidator))
    #    getattr(ModelFormValidator, 'model')
    #    getattr(ModelFormValidator, 'form')
    #    getattr(ModelFormValidator, 'fields')
    #    getattr(ModelFormValidator, 'exclude_fields')
    #    getattr(ModelFormValidator, 'validate')
    #def test_model_form_validator_mixin_interface(self):
    #    """Ensure the ModelFormValidatorMixin interface is as expected."""
    #    self.assertTrue(issubclass(ModelFormValidator, FormValidator))
    #    getattr(ModelFormValidator, 'model')
    #    getattr(ModelFormValidator, 'form')
    #    getattr(ModelFormValidator, 'fields')
    #    getattr(ModelFormValidator, 'exclude_fields')
    #    getattr(ModelFormValidator, 'validate')
    #def test_model_form_validator_mixin_interface(self):
    #    """Ensure the ModelFormValidatorMixin interface is as expected."""
    #    self.assertTrue(issubclass(ModelFormValidator, FormValidator))
    #    getattr(ModelFormValidator, 'model')
    #    getattr(ModelFormValidator, 'form')
    #    getattr(ModelFormValidator, 'fields')
    #    getattr(ModelFormValidator, 'exclude_fields')
    #    getattr(ModelFormValidator, 'validate')
    #def test_model_form_validator_mixin_interface(self):
    #    """Ensure the ModelFormValidatorMixin interface is as expected."""
    #    self.assertTrue(issubclass(ModelFormValidator, FormValidator))
    #    getattr(ModelFormValidator, 'model')
    #    getattr(ModelFormValidator, 'form')
    #    getattr(ModelFormValidator, 'fields')
    #    getattr(ModelFormValidator, 'exclude_fields')
    #    getattr(ModelFormValidator, 'validate')
    #def test_model_form_validator_mixin_interface(self):
    #    """Ensure the ModelFormValidatorMixin interface is as expected."""
    #    self.assertTrue(issubclass(ModelFormValidator, FormValidator))
    #    getattr(ModelFormValidator, 'model')
    #    getattr(ModelFormValidator, 'form')
    #    getattr(ModelFormValidator, 'fields')
    #    getattr(ModelFormValidator, 'exclude_fields')
    #    getattr(ModelFormValidator, 'validate')
    #def test_model_form_validator_mixin_interface(self):
    #    """Ensure the ModelFormValidatorMixin interface is as expected."""
    #    self.assertTrue(issubclass(ModelFormValidator, FormValidator))
    #    getattr(ModelFormValidator, 'model')
    #    getattr(ModelFormValidator, 'form')
    #    getattr(ModelFormValidator, 'fields')
    #    getattr(ModelFormValidator, 'exclude_fields')
    #    getattr(ModelFormValidator, 'validate')
    #def test_model_form_validator_mixin_interface(self):
    #    """Ensure the ModelFormValidatorMixin interface is as expected."""
    #    self.assertTrue(issubclass(ModelFormValidator, FormValidator))
    #    getattr(ModelFormValidator, 'model')
    #    getattr(ModelFormValidator, 'form')
    #    getattr(ModelFormValidator, 'fields')
    #    getattr(ModelFormValidator, 'exclude_fields')
    #    getattr(ModelFormValidator, 'validate')
  
  
  class TestDisabledValidations(TestCase):
      """Tests on Validator Mixins with validation disabled by setting form to None"""
  
keep keep keep keep replace replace replace replace replace replace replace replace keep keep keep keep keep
 Lots of validator tests passing after refactor 
djangorestframework/tests/validators.py