def METHOD_NAME(self):
    """
    Tests making migrations with Django 1.7+'s migration framework
    """
    from django.db import migrations
    from django.db.migrations.writer import MigrationWriter
    import oscar
    from oscar.models.fields import AutoSlugField
    fields = {
        "autoslugfield": AutoSlugField(populate_from="otherfield"),
    }
    migration = type(
        str("Migration"),
        (migrations.Migration,),
        {
            "operations": [
                migrations.CreateModel(
                    "MyModel",
                    tuple(fields.items()),
                    {"populate_from": "otherfield"},
                    (models.Model,),
                ),
            ],
        },
    )
    writer = MigrationWriter(migration)
    output = writer.as_string()
    if isinstance(output, str):
        output = output.encode("utf-8")
    # We don't test the output formatting - that's too fragile.
    # Just make sure it runs for now, and that things look alright.
    context = {
        "migrations": migrations,
        "oscar": oscar,
    }
    result = self.safe_exec(output, context=context)
    self.assertIn("Migration", result)