def test_get_aggregate_list(self):
uuids = [self.aggregate['uuid']]
for i in range(1, 6):
aggregate = utils.create_test_aggregate(
uuid=uuidutils.generate_uuid(),
name=six.text_type(i))
uuids.append(six.text_type(aggregate['uuid']))
res = self.dbapi.aggregate_get_all(self.context)
res_uuids = [r['uuid'] for r in res]
six.assertCountEqual(self, uuids, res_uuids)
评论列表
文章目录