test_flavors.py 文件源码

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

项目:mogan 作者: openstack 项目源码 文件源码
def test_get_flavor_list(self):
        uuids = [self.flavor['uuid']]
        for i in range(1, 6):
            flavor = utils.create_test_flavor(
                uuid=uuidutils.generate_uuid(),
                name=six.text_type(i))
            uuids.append(six.text_type(flavor['uuid']))
        res = self.dbapi.flavor_get_all(self.context)
        res_uuids = [r['uuid'] for r in res]
        six.assertCountEqual(self, uuids, res_uuids)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号