def test_reservation_in_exception_message(self):
    node = utils.create_test_node()
    uuid = node.uuid
    r = 'fake-reservation'
    self.dbapi.reserve_node(r, uuid)
    exc = self.assertRaises(exception.NodeLocked, self.dbapi.reserve_node, 'another', uuid)
    self.assertIn(r, str(exc))
def test_reservation_in_exception_message(self):
    node = utils.create_test_node()
    uuid = node.uuid
    r = 'fake-reservation'
    self.dbapi.reserve_node(r, uuid)
    exc = self.assertRaises(exception.NodeLocked, self.dbapi.reserve_node, 'another', uuid)
    self.assertIn(r, str(exc))