'Makes sure the loader uses Migration.run_before.'

@override_settings(MIGRATION_MODULES={'migrations': 'migrations.test_migrations_run_before'})
def test_run_before(self):

    migration_loader = MigrationLoader(connection)
    self.assertEqual(migration_loader.graph.forwards_plan(('migrations', '0002_second')), [('migrations', '0001_initial'), ('migrations', '0003_third'), ('migrations', '0002_second')])
