def test_rename_model_self(self):
        self.assertOptimizesTo(
            [
                migrations.RenameModel("Foo", "Baa"),
                migrations.RenameModel("Baa", "Bar"),
            ],
            [
                migrations.RenameModel("Foo", "Bar"),
            ],
        )
RenameModels should absorb themselves.
dataset/ETHPy150Open django/django/tests/migrations/test_optimizer.py/OptimizerTests.test_rename_model_self