def METHOD_NAME(mock_requests, response, current_version, newer_version):
    mock_requests.get().json.return_value = response
    lightning.app.utilities.cli_helpers.__version__ = current_version
    _get_newer_version.cache_clear()
    assert _get_newer_version() == newer_version