def METHOD_NAME(slack_length, gates):
    with pytest.raises(ValueError, match="Wrong number of qubits"):
        general_rule(
            slack_length=slack_length,
            gates=gates,
        )