

def _check_265(self, engine, data):
    instances = oslodbutils.get_table(engine, 'instances')
    self.assertEqual(1, len([i for i in instances.indexes if ([c.name for c in i.columns][:2] == ['host', 'deleted'])]))
    iscsi_targets = oslodbutils.get_table(engine, 'iscsi_targets')
    self.assertEqual(1, len([i for i in iscsi_targets.indexes if ([c.name for c in i.columns][:1] == ['host'])]))

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/db/test_migrations.py NovaMigrationsCheckers._check_265/original