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
评论列表
文章目录