'Tests that the migration files are in sync with the models.
If this fails, you needs to run the Django command makemigrations.
The test is set up to override MIGRATION_MODULES to ensure migrations are
enabled for purposes of this test regardless of the overall test settings.'

@override_settings(MIGRATION_MODULES={})
def test_migrations_are_in_sync(self):

    with self.assertRaises(SystemExit):
        call_command('makemigrations', '-e')
