def test_max_value_is_passed(self):
        class TestSerializer(serializers.ModelSerializer):
            class Meta:
                model = DecimalFieldModel

        serializer = TestSerializer()

        assert serializer.fields['decimal_field'].max_value == 3
Test that the `MaxValueValidator` is converted to the `max_value`
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_model_serializer.py/TestDecimalFieldMappings.test_max_value_is_passed