def test_is_unique_together(self):
        data = {'race_name': 'other', 'position': 2}
        serializer = UniquenessTogetherSerializer(data=data)
        assert serializer.is_valid()
        assert serializer.validated_data == {
            'race_name': 'other',
            'position': 2
        }
In a unique together validation, one field may be non-unique
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_validators.py/TestUniquenessTogetherValidation.test_is_unique_together