'Tests foreign key creation, especially uppercase (see #61)'

def test_foreign_keys(self):

    Test = db.mock_model(model_name='Test', db_table='test5a', db_tablespace='', pk_field_name='ID', pk_field_type=models.AutoField, pk_field_args=[])
    db.create_table('test5a', [('ID', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True))])
    db.create_table('test5b', [('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('UNIQUE', models.ForeignKey(Test))])
    db.execute_deferred_sql()
