def test_get_nodeinfo_list_description(self):
    node1 = utils.create_test_node(uuid=uuidutils.generate_uuid(), description='Hello')
    node2 = utils.create_test_node(uuid=uuidutils.generate_uuid(), description='World!')
    res = self.dbapi.get_nodeinfo_list(filters={'description_contains': 'Hello'})
    self.assertEqual([node1.id], [r[0] for r in res])
    res = self.dbapi.get_nodeinfo_list(filters={'description_contains': 'World!'})
    self.assertEqual([node2.id], [r[0] for r in res])
def test_get_nodeinfo_list_description(self):
    node1 = utils.create_test_node(uuid=uuidutils.generate_uuid(), description='Hello')
    node2 = utils.create_test_node(uuid=uuidutils.generate_uuid(), description='World!')
    res = self.dbapi.get_nodeinfo_list(filters={'description_contains': 'Hello'})
    self.assertEqual([node1.id], [r[0] for r in res])
    res = self.dbapi.get_nodeinfo_list(filters={'description_contains': 'World!'})
    self.assertEqual([node2.id], [r[0] for r in res])