

def _check_246(self, engine, data):
    pci_devices = oslodbutils.get_table(engine, 'pci_devices')
    self.assertEqual(1, len([fk for fk in pci_devices.foreign_keys if (fk.parent.name == 'compute_node_id')]))

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