(tmpdir)
| 26 | |
| 27 | @pytest.mark.skipif("no_real_s3_credentials()") |
| 28 | def 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()") |
nothing calls this directly
no test coverage detected