test_boto_engine.py 文件源码

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

项目:aq 作者: lebinh 项目源码 文件源码
def test_get_resource_model_attributes(self):
        try:
            resource = boto3.resource('ec2')
        except NoRegionError:
            # skip for environment that doesn't have boto config like CI
            pass
        else:
            collection = resource.instances.all()
            attributes = get_resource_model_attributes(resource, collection)
            assert attributes
            assert 'instance_id' in attributes
            assert 'image_id' in attributes
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号