def test_get_node_by_port_addresses_not_found(self):
    node = utils.create_test_node(driver='driver', uuid=uuidutils.generate_uuid())
    utils.create_test_port(uuid=uuidutils.generate_uuid(), node_id=node.id, address='aa:bb:cc:dd:ee:ff')
    self.assertRaisesRegex(exception.NodeNotFound, 'was not found', self.dbapi.get_node_by_port_addresses, ['11:22:33:44:55:66'])
def test_get_node_by_port_addresses_not_found(self):
    node = utils.create_test_node(driver='driver', uuid=uuidutils.generate_uuid())
    utils.create_test_port(uuid=uuidutils.generate_uuid(), node_id=node.id, address='aa:bb:cc:dd:ee:ff')
    self.assertRaisesRegex(exception.NodeNotFound, 'was not found', self.dbapi.get_node_by_port_addresses, ['11:22:33:44:55:66'])