  from djangorestframework.compat import RequestFactory
  from djangorestframework.resources import Resource, FormResource, ModelResource
  from djangorestframework.response import ErrorResponse
  from djangorestframework.views import View
  from djangorestframework.resources import Resource
  
  
  
  class TestDisabledValidations(TestCase):
      """Tests on FormValidator with validation disabled by setting form to None"""
  
 
</s> remove from djangorestframework.compat import RequestFactory
from djangorestframework.resources import Resource, FormResource, ModelResource
 </s> add from djangorestframework.resources import FormResource, ModelResource </s> remove         content = {'qwerty':'uiop'}
 </s> add         content = {'qwerty': 'uiop'} </s> remove         with self.assertRaises(ErrorResponse):
            response = mixin.get(request, 12345)
 </s> add         self.assertRaises(ErrorResponse, mixin.get, request, 12345) </s> remove         content = {'qwerty':'uiop'}
 </s> add         content = {'qwerty': 'uiop'} </s> remove         content = {'qwerty':'uiop'}
        self.assertEqual(ModelResource(view).get_bound_form(content), None)#
 </s> add         content = {'qwerty': 'uiop'}
        self.assertEqual(ModelResource(view).get_bound_form(content), None)
  from djangorestframework.compat import RequestFactory
  from djangorestframework.resources import Resource, FormResource, ModelResource
  from djangorestframework.response import ErrorResponse
  from djangorestframework.views import View


  
  
  class TestDisabledValidations(TestCase):
      """Tests on FormValidator with validation disabled by setting form to None"""
  
keep keep keep keep replace replace keep keep keep keep keep
 Fix tests to work on all supported configurations. 
djangorestframework/tests/validators.py