'Test adding a ForeignKey with unique=True or a OneToOneField'

def test_add_unique_fk(self):

    db.create_table('test_add_unique_fk', [('spam', models.BooleanField(default=False))])
    db.add_column('test_add_unique_fk', 'mock1', models.ForeignKey(db.mock_model('User', 'auth_user'), null=True, unique=True))
    db.add_column('test_add_unique_fk', 'mock2', models.OneToOneField(db.mock_model('User', 'auth_user'), null=True))
    db.execute_deferred_sql()
    db.delete_table('test_add_unique_fk')
