'makemigrations properly constructs an empty migration.'

def test_makemigrations_empty_migration(self):

    with self.temporary_migration_module() as migration_dir:
        call_command('makemigrations', 'migrations', empty=True, verbosity=0)
        initial_file = os.path.join(migration_dir, '0001_initial.py')
        self.assertTrue(os.path.exists(initial_file))
        with open(initial_file, 'r', encoding='utf-8') as fp:
            content = fp.read()
            content = content.replace('    ', '')
            self.assertIn('dependencies=[\n]', content)
            self.assertIn('operations=[\n]', content)
