

def _check_279(self, engine, data):
    inspector = reflection.Inspector.from_engine(engine)
    constraints = inspector.get_unique_constraints('compute_nodes')
    constraint_names = [constraint['name'] for constraint in constraints]
    self.assertNotIn('uniq_compute_nodes0host0hypervisor_hostname', constraint_names)
    self.assertIn('uniq_compute_nodes0host0hypervisor_hostname0deleted', constraint_names)

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