MapQuest: batch feature unit testing
@@ -6,6 +6,7 @@ import geocoder
location = 'Ottawa'
city = 'Ottawa'
ottawa = (45.50, -76.05)
+locations = ['Denver,CO', 'Boulder,CO']
def test_mapquest():
@@ -20,6 +21,10 @@ def test_mapquest_reverse():
g = geocoder.mapquest(ottawa, method='reverse', timeout=10)
assert g.ok
+def test_mapquest_batch():
+ g = geocoder.mapquest(locations, method='batch', timeout=10)
+ assert g.ok
+ assert len(g) == 2
def test_multi_results():
g = geocoder.mapquest(location, maxRows=3, timeout=10)
