

def _check_227(self, engine, data):
    table = oslodbutils.get_table(quota, 'project_user_quotas')
    fake_quotas = {
        'id': 5,
        'project_id': 'fake_project',
        'user_id': 'fake_user',
        'resource': 'injected_file_content_bytes',
        'hard_limit': 10,
    }
    table.insert().execute(fake_quotas)
    quota = table.select((table.c.id == 5)).execute().first()
    self.assertEqual(quota['resource'], 'injected_file_content_bytes')

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/db/test_migrations.py NovaMigrationsCheckers._check_227/VarMisuse@20/26 `engine`->`quota`