Add an assertIssuesDeprecationWarning method to UnittestTools, and test it.