def test_release_non_locked_node(self):
    node = utils.create_test_node()
    self.assertIsNone(node.reservation)
    self.assertRaises(exception.NodeNotLocked, self.dbapi.release_node, 'fake', node.id)
    self.assertRaises(exception.NodeNotLocked, self.dbapi.release_node, 'fake', node.uuid)
def test_release_non_locked_node(self):
    node = utils.create_test_node()
    self.assertIsNone(node.reservation)
    self.assertRaises(exception.NodeNotLocked, self.dbapi.release_node, 'fake', node.id)
    self.assertRaises(exception.NodeNotLocked, self.dbapi.release_node, 'fake', node.uuid)