@pytest.mark.parametrize('decorator', [_no_decorator, classmethod])
def test_class_deprecation(capture, decorator):

    class Bla(object):

        @deprecated('reason')
        @classmethod
        def func(self, a, b):
            assert isinstance(self, Bla)
            return a + b

    assert Bla().func(2, 4) == 6

    [record] = capture.records
    assert record.message in 'Bla.func is deprecated'
dataset/ETHPy150Open getlogbook/logbook/tests/test_utils.py/test_class_deprecation/swapped operands of `in`