"""Regression tests for pypa/packaging patterns#12: ⚡️ Speed up function `sanitize_pattern` by 11,547%

Generated by Breakwater. Each test passed on the base commit and failed on the head commit when
generated; it pins the old behaviour.
"""


def test_patterns_12_p2_outcome_0():
    """Breakwater P2: base behaviour pinned (found by differential testing; label: likely-bug)."""
    import pytest
    from json2nginx import sanitize_pattern
    with pytest.raises(AttributeError) as excinfo:
        sanitize_pattern([['pattern', '0']])
    assert type(excinfo.value) is AttributeError  # exact type: a subclass would be a behaviour change
