Replace deprecated unittest method aliases

Proprietary

Replace deprecated unittest.TestCase method aliases like assertEquals with their modern equivalents like assertEqual. These aliases were removed in Python 3.11/3.12. Only fires where the receiver's type resolves to unittest.TestCase or a subclass.

org.openrewrite.python.migrate.ReplaceUnittestDeprecatedAliases
mod run . --recipe=org.openrewrite.python.migrate.ReplaceUnittestDeprecatedAliases

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.