'Test column renaming while --dry-run is turned on (should do nothing)
See ticket #65'

def test_dry_rename(self):

    cursor = connection.cursor()
    db.create_table('test_drn', [('spam', models.BooleanField(default=False))])
    cursor.execute('SELECT    spam    FROM    test_drn')
    db.dry_run = True
    db.rename_column('test_drn', 'spam', 'eggs')
    db.dry_run = False
    cursor.execute('SELECT    spam    FROM    test_drn')
    db.commit_transaction()
    db.start_transaction()
    try:
        cursor.execute('SELECT    eggs    FROM    test_drn')
    except:
        pass
    else:
        self.fail('Dry-renamed    new    column    could    be    selected!')
    db.rollback_transaction()
    db.delete_table('test_drn')
    db.start_transaction()
