def test_release_reservation(self):
    node = utils.create_test_node()
    uuid = node.uuid
    r1 = 'fake-reservation'
    self.dbapi.reserve_node(r1, uuid)
    self.dbapi.release_node(r1, uuid)
    res = self.dbapi.get_node_by_uuid(uuid)
    self.assertIsNone(res.reservation)
def test_release_reservation(self):
    node = utils.create_test_node()
    uuid = node.uuid
    r1 = 'fake-reservation'
    self.dbapi.reserve_node(r1, uuid)
    self.dbapi.release_node(r1, uuid)
    res = self.dbapi.get_node_by_uuid(uuid)
    self.assertIsNone(res.reservation)