'Allow `makemigrations --dry-run` to output the migrations file to
stdout (with verbosity == 3).'

def test_makemigrations_dry_run_verbosity_3(self):

    class SillyModel(models.Model, ):
        silly_field = models.BooleanField(default=False)
        silly_char = models.CharField(default='')
        class Meta:
            app_label = 'migrations'
    out = io.StringIO()
    with self.temporary_migration_module(module='migrations.test_migrations_no_default'):
        call_command('makemigrations', 'migrations', dry_run=True, stdout=out, verbosity=3)
    self.assertIn('-    Add    field    silly_char    to    sillymodel', out.getvalue())
    self.assertIn('class    Migration(migrations.Migration):', out.getvalue())
    self.assertIn('dependencies    =    [', out.getvalue())
    self.assertIn("('migrations',    '0001_initial'),", out.getvalue())
    self.assertIn('migrations.AddField(', out.getvalue())
    self.assertIn("model_name='sillymodel',", out.getvalue())
    self.assertIn("name='silly_char',", out.getvalue())
