def METHOD_NAME():
  try:
    # Mock should be called twice: once for HEAD (to check permissions)
    # and once for GET methods.
    mock_method.assert_called_with(
        api_hunt.ApiGetExportedHuntResultsArgs(
            hunt_id=hunt_id, plugin_name=plugin),
        context=mock.ANY)
    return True
  except AssertionError:
    return False