'RenameField should optimize to the other side of AlterField,
and into itself.'

def test_alter_field_rename_field(self):

    self.assertOptimizesTo([migrations.AlterField('Foo', 'name', models.CharField(max_length=255)), migrations.RenameField('Foo', 'name', 'title'), migrations.RenameField('Foo', 'title', 'nom')], [migrations.RenameField('Foo', 'name', 'nom'), migrations.AlterField('Foo', 'nom', models.CharField(max_length=255))])
