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
Return first item with a key >= equal to k.  Raise ValueError if not found
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_model_serializer.py/TestDecimalFieldMappings.test_max_value_is_passed--crossover with--dataset/ETHPy150Open tabatkins/bikeshed/bikeshed/SortedList.py/SortedList.find_ge