def METHOD_NAME(self, get_cloud_interface_mock, caplog):
    """If the WAL is found we exit with status 0."""
    cloud_interface_mock = get_cloud_interface_mock.return_value
    cloud_interface_mock.path = "testfolder/"
    cloud_interface_mock.list_bucket.return_value = [
        "testfolder/test-server/wals/000000080000ABFF/000000080000ABFF000000C1"
    ]
    cloud_walrestore.main(
        [
            "s3://test-bucket/testfolder/",
            "test-server",
            "000000080000ABFF000000C1",
            "/tmp/000000080000ABFF000000C1",
        ]
    )
    assert caplog.text == ""
    cloud_interface_mock.download_file.assert_called_once()