def test_reservation_non_existent_node(self):
    node = utils.create_test_node()
    self.dbapi.destroy_node(node.id)
    self.assertRaises(exception.NodeNotFound, self.dbapi.reserve_node, 'fake', node.id)
    self.assertRaises(exception.NodeNotFound, self.dbapi.reserve_node, 'fake', node.uuid)
def test_reservation_non_existent_node(self):
    node = utils.create_test_node()
    self.dbapi.destroy_node(node.id)
    self.assertRaises(exception.NodeNotFound, self.dbapi.reserve_node, 'fake', node.id)
    self.assertRaises(exception.NodeNotFound, self.dbapi.reserve_node, 'fake', node.uuid)