MCPcopy Create free account
hub / github.com/awsdocs/aws-doc-sdk-examples / make_version

Method make_version

python/test_tools/s3_stubber.py:41–47  ·  view source on GitHub ↗
(key, version_id, is_latest=None, last_modified=None)

Source from the content-addressed store, hash-verified

39
40 @staticmethod
41 def make_version(key, version_id, is_latest=None, last_modified=None):
42 version = {"Key": key, "VersionId": version_id}
43 if is_latest is not None:
44 version["IsLatest"] = is_latest
45 if last_modified:
46 version["LastModified"] = last_modified
47 return version
48
49 def stub_create_bucket(
50 self, bucket_name, region_name=None, bucket_configuration=None, error_code=None

Callers 6

test_rollback_objectFunction · 0.80
test_revive_objectFunction · 0.80
test_prepare_for_revivalFunction · 0.80
test_prepare_for_cleanupFunction · 0.80

Calls

no outgoing calls

Tested by 6

test_rollback_objectFunction · 0.64
test_revive_objectFunction · 0.64
test_prepare_for_revivalFunction · 0.64
test_prepare_for_cleanupFunction · 0.64