The deprecation library provides a deprecated decorator and a fail_if_not_removed decorator for your tests. Together, the two enable the automation of several things:
deprecation
deprecated
fail_if_not_removed