def METHOD_NAME(self, get_cloud_interface_mock, caplog):
    """If the bucket does not exist we exit with status 1."""
    cloud_interface_mock = get_cloud_interface_mock.return_value
    cloud_interface_mock.bucket_name = "no_bucket_here"
    cloud_interface_mock.bucket_exists = False
    with pytest.raises(SystemExit) as exc:
        cloud_walrestore.main(
            [
                "s3://test-bucket/testfolder/",
                "test-server",
                "000000080000ABFF000000C1",
                "/tmp/000000080000ABFF000000C1",
            ]
        )
    assert exc.value.code == 1
    assert "Bucket no_bucket_here does not exist" in caplog.text