MCPcopy Create free account
hub / github.com/wal-e/wal-e / test_404_termination

Function test_404_termination

tests/test_s3_util.py:28–40  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

26
27@pytest.mark.skipif("no_real_s3_credentials()")
28def test_404_termination(tmpdir):
29 bucket_name = bucket_name_mangle('wal-e-test-404-termination')
30 creds = Credentials(os.getenv('AWS_ACCESS_KEY_ID'),
31 os.getenv('AWS_SECRET_ACCESS_KEY'))
32
33 with FreshBucket(bucket_name, host='s3.amazonaws.com',
34 calling_format=OrdinaryCallingFormat()) as fb:
35 fb.create()
36
37 target = str(tmpdir.join('target'))
38 ret = do_lzop_get(creds, 's3://' + bucket_name + '/not-exist.lzo',
39 target, False)
40 assert ret is False
41
42
43@pytest.mark.skipif("no_real_s3_credentials()")

Callers

nothing calls this directly

Calls 6

bucket_name_mangleFunction · 0.90
FreshBucketClass · 0.90
do_lzop_getFunction · 0.90
CredentialsClass · 0.50
createMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected