'Test comments at top of file.'

def test_migration_file_header_comments(self):

    migration = type('Migration', (migrations.Migration,), {'operations': []})
    dt = datetime.datetime(2015, 7, 31, 4, 40, 0, 0, tzinfo=utc)
    with mock.patch('django.db.migrations.writer.now', (lambda : dt)):
        writer = MigrationWriter(migration)
        output = writer.as_string()
    self.assertTrue(output.startswith(('#    Generated    by    Django    %(version)s    on    2015-07-31    04:40\n' % {'version': get_version()})))
