Alongside expansion, I'd test collisions in the transformed key: Python turns both 'stra脽e' and 'strasse' into 'STRASSE'. Checking the final length helps with your VARCHAR example, but it won't catch two different accepted inputs mapping to the same stored identifier. If casing is used for keys, make the uniqueness policy apply to that final representation too.
