def test_ignore_excluded_fields(self):
        class ExcludedFieldSerializer(serializers.ModelSerializer):
            class Meta:
                model = UniquenessTogetherModel
                fields = ('id', 'race_name',)
        serializer = ExcludedFieldSerializer()
        expected = dedent("""
            ExcludedFieldSerializer():
                id = IntegerField(label='ID', read_only=True)
                race_name = CharField(max_length=100)
        """)
        assert repr(serializer) == expected
When model fields are not included in a serializer, then uniqueness
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_validators.py/TestUniquenessTogetherValidation.test_ignore_excluded_fields