          }
  
      def test_max_value_validation_success(self):
          obj = ValidationMaxValueValidatorModel.objects.create(number_value=100)
          request = factory.patch('/{0}'.format(obj.pk), {'number_value': 98}, format='json')
          view = UpdateMaxValueValidationModel().as_view()
          response = view(request, pk=obj.pk).render()
          assert response.status_code == status.HTTP_200_OK
  
      def test_max_value_validation_fail(self):
 
</s> remove         request = factory.patch('/{0}'.format(obj.pk), {'number_value': 101}, format='json')
 </s> add         request = factory.patch('/{}'.format(obj.pk), {'number_value': 101}, format='json') </s> remove         request = factory.put('/{0}'.format(filtered_out_pk), data, format='json')
 </s> add         request = factory.put('/{}'.format(filtered_out_pk), data, format='json') </s> remove         assert response.content == six.b('')
 </s> add         assert response.content == b'' </s> remove         class DummyView(object):
 </s> add         class DummyView: </s> remove class InclusiveFilterBackend(object):
 </s> add class InclusiveFilterBackend:
        request = factory.patch('/{}'.format(obj.pk), {'number_value': 98}, format='json')
          }
  
      def test_max_value_validation_success(self):
          obj = ValidationMaxValueValidatorModel.objects.create(number_value=100)
        request = factory.patch('/{}'.format(obj.pk), {'number_value': 98}, format='json')
          view = UpdateMaxValueValidationModel().as_view()
          response = view(request, pk=obj.pk).render()
          assert response.status_code == status.HTTP_200_OK
  
      def test_max_value_validation_fail(self):
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
tests/test_validation.py