def test_get_node_list(self):
    uuids = []
    for i in range(1, 6):
        node = utils.create_test_node(uuid=uuidutils.generate_uuid())
        uuids.append(six.text_type(node['uuid']))
    res = self.dbapi.get_node_list()
    res_uuids = [r.uuid for r in res]
    six.assertCountEqual(self, uuids, res_uuids)
    for r in res:
        self.assertEqual([], r.tags)
        self.assertEqual([], r.traits)
def test_get_node_list(self):
    uuids = []
    for i in range(1, 6):
        node = utils.create_test_node(uuid=uuidutils.generate_uuid())
        uuids.append(six.text_type(node['uuid']))
    res = self.dbapi.get_node_list()
    res_uuids = [r.uuid for r in res]
    six.assertCountEqual(self, uuids, res_uuids)
    for r in res:
        self.assertEqual([], r.tags)
        self.assertEqual([], r.traits)