Fix deprecated `unittest.TestCase` method aliases.