'Test that the `MaxValueValidator` is converted to the `max_value`
argument for the field.'

def test_max_value_is_passed(self):

    class TestSerializer(serializers.ModelSerializer, ):
        class Meta:
            model = DecimalFieldModel
            fields = u'__all__'
    serializer = TestSerializer()
    assert (serializer.fields[u'decimal_field'].max_value == 3)
