'makemigrations --check should exit with a non-zero status when
there are changes to an app requiring migrations.'

def test_makemigrations_check(self):

    with self.temporary_migration_module():
        with self.assertRaises(SystemExit):
            call_command('makemigrations', '--check', 'migrations', verbosity=0)
    with self.temporary_migration_module(module='migrations.test_migrations_no_changes'):
        call_command('makemigrations', '--check', 'migrations', verbosity=0)
