def METHOD_NAME(request):
    """Verify that looking up a folder by name works."""
    request.return_value.status_code = 200
    request.return_value.json.return_value = {"name": "Spam"}
    folder = folders.get_folder("Spam")
    assert folder is not None
    assert folder.name == "Spam"
    # Service should do a search on folder name first followed by a get for folder details.
    assert request.call_count == 2
    url, params = request.call_args_list[0]
    search_filter = params["params"]
    # / should have been stripped out of folder name
    assert '"Spam"' in search_filter