'Makes sure the \'__first__\' migrations build correctly.'

@override_settings(MIGRATION_MODULES={'migrations': 'migrations.test_migrations_first', 'migrations2': 'migrations2.test_migrations_2_first'})
@modify_settings(INSTALLED_APPS={'append': 'migrations2'})
def test_first(self):

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