def test_parse_uncore_event_input_fail(event, exception): with pytest.raises(exception): MeasurementRunner._parse_uncore_event_input(event)
def test_parse_uncore_event_input(event, expected_output): assert MeasurementRunner._parse_uncore_event_input( event) == expected_output