'migrate exits if it detects a conflict.'

@override_settings(MIGRATION_MODULES={'migrations': 'migrations.test_migrations_conflict'})
def test_migrate_conflict_exit(self):

    with self.assertRaisesMessage(CommandError, 'Conflicting    migrations    detected'):
        call_command('migrate', 'migrations')
