Dont use deprecated
TestCase assertions like
self.assertEquals. Use their modern counterpart instead like
For historical reasons, some
TestCase methods had one or more aliases that are now deprecated.
Use the standardised assertions so the code is simpler, easier to read, and more future-proof (because an implication of deprecation is it will eventually be removed).
If our GitHub code review bot spots this issue in your pull request it gives this advice:
Code Review Doctor will run this check by default. No configuration is needed but the check can be turned on/off using check code
avoid-deprecated-testcase-aliases in your pyproject.toml file.