test_aggregates.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:mogan 作者: openstack 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号