def test_abbreviation_expansion_prefix_not_0_in_braces() -> None:
    """Verify abbreviation unpacking raises error on incorrect index."""
    with pytest.raises(IndexError):
        expand_abbreviations('xx:a', {'xx': '{1}'})
Verify abbreviation unpacking raises error on incorrect index.
tests/repository/test_abbreviation_expansion.py