def test_deprecatd_docstring():

    message = "Use something else instead"

    @deprecated()
    def some_func():
        """This is a function
        """

    @deprecated(message)
    def other_func():
        """This is another function
        """

    assert ".. deprecated" in some_func.__doc__
    assert other_func.__doc__ in ".. deprecated\n   {0}".format(message)
dataset/ETHPy150Open getlogbook/logbook/tests/test_utils.py/test_deprecatd_docstring/swapped operands of `in`