def test_parse_raw_event_name_invalid(event_name, expected_match):
    with pytest.raises(Exception, match=expected_match):
        _parse_raw_event_name(event_name)
def test_parse_raw_event_name(event_name, expected_attr_config):
    got_attr_config = _parse_raw_event_name(event_name)
    assert got_attr_config == expected_attr_config