code: def test_geocoding_with_proximity():
      # query google first to get a bbox
      urls = [
          # when testing locally
          "https://maps.googleapis.com/maps/api/geocode/json?language=&address=Ottawa,%20Ontario&bounds=&components=&region=&key=mock",
          # when building in Travis (secured connection implies ordered parameters)
          "https://maps.googleapis.com/maps/api/geocode/json?client=[secure]&latlng=45.4215296%2C+-75.697193&sensor=false&signature=iXbq6odmrYN0XgcfB5EPcgEvR-I%3D",
      ]
      data_file = "tests/results/google.json"
      with requests_mock.Mocker() as mocker, open(
          data_file, "r"
      ) as input:
          for url in urls:
              mocker.get(url, text=input.read())
          google = geocoder.google(location, client=None, key="mock")
      # query geonames with bbox
      url = "http://api.geonames.org/searchJSON?q=Ottawa%2C+Ontario&fuzzy=1.0&username=mock&maxRows=1&east=-75.2465979&west=-76.3539158&north=45.5375801&south=44.962733"
      data_file = "tests/results/geonames_proximity.json"
      with requests_mock.Mocker() as mocker, open(
          data_file, "r"
      ) as input:
          mocker.get(url, text=input.read())
          g = geocoder.geonames(
              location, key="mock", proximity=google.bbox
          )
          assert g.ok
  
file_path: geocoder/tests/test_geonames.py
imports: import json
  import pytest
  import geocoder
  import requests_mock
label_desc: Use image node_id 13 for calling a global function with example usage: test_geocoding_with_proximity() without return types