'Failing unique together validation should result in non field errors.'

def test_is_not_unique_together(self):

    data = {'race_name': 'example', 'position': 2}
    serializer = UniquenessTogetherSerializer(data=data)
    assert (not serializer.is_valid())
    assert (serializer.errors == {'non_field_errors': ['The    fields    race_name,    position    must    make    a    unique    set.']})
