def test_deprecation_with_message(capture):

    @deprecated("use something else instead")
    def func(a, b):
        return a + b

    func(1, 2)

    [record] = capture.records
    assert record.message in "use something else instead"
    assert "func is deprecated" in record.message
dataset/ETHPy150Open getlogbook/logbook/tests/test_utils.py/test_deprecation_with_message/swapped operands of `in`