def METHOD_NAME(self):
    def new(bbb):
        return bbb
    for i in ('new', new):
        @rename_function(i, '0.1.0', '0.2.0', current_version=self.VERSION)
        def old(bbb):
            return bbb
        with warnings.catch_warnings(record=True) as w:
            warnings.simplefilter("always")
            assert old(5) == 5
            assert len(w) == 1
            assert issubclass(w[-1].category, DeprecationWarning)
            assert str(
                w[-1].message
            ) == "'old' is deprecated since version 0.1.0 - it was moved to 'new', please switch to use that. The proxy for the old name is going to be removed in 0.2.0.", str(
                w[-1].message
            )