def test_deprecation_message(capture):
    deprecated_func(1, 2)

    [record] = capture.records
    assert record.message in "deprecated"
    assert 'deprecated_func' in record.message
dataset/ETHPy150Open getlogbook/logbook/tests/test_utils.py/test_deprecation_message/swapped operands of `in`