Example #1
0
def test_parse_syslog_message_structured_data_exception() -> None:
    with pytest.raises(ValueError):
        parse_syslog_message_structured_data(
            '[Checkmk@18662 sl="0" ipaddress="127.0.0.1"][Checkmk@18662 sl="0" ipaddress="127.0.0.2"]'
        )
Example #2
0
def test_parse_syslog_message_structured_data(
    structured_data: str,
    expected_result: Tuple[Mapping[str, str], str],
) -> None:
    assert parse_syslog_message_structured_data(structured_data) == expected_result