@@ -0,0 +1,765 @@
+# Tai Sakuma %3Ctai.sakuma@gmail.com%3E%0Aimport logging%0A%0Afrom alphatwirl.misc.deprecation import atdeprecated%0A%0A##__________________________________________________________________%7C%7C%0A@atdeprecated(msg='extra message')%0Adef func():%0A    pass%0A%0A##__________________________________________________________________%7C%7C%0Adef test_func_logging(caplog):%0A    with caplog.at_level(logging.WARNING, logger='alphatwirl'):%0A        func()%0A%0A    assert len(caplog.records) == 1%0A    assert caplog.records%5B0%5D.levelname == 'WARNING'%0A    assert 'test_deprecation' in caplog.records%5B0%5D.name%0A    assert 'func() is deprecated. extra message' == caplog.records%5B0%5D.msg%0A%0Adef test_func_name():%0A    assert  'func' == func.__name__%0A%0A##__________________________________________________________________%7C%7C%0A

add test_deprecation.py