[Checkins] SVN: keas.googlemap/trunk/src/keas/googlemap/README.txt Add geocode query failure test for coverage.

Dan Korostelev nadako at gmail.com
Thu Nov 6 08:44:49 EST 2008


Log message for revision 92813:
  Add geocode query failure test for coverage.

Changed:
  U   keas.googlemap/trunk/src/keas/googlemap/README.txt

-=-
Modified: keas.googlemap/trunk/src/keas/googlemap/README.txt
===================================================================
--- keas.googlemap/trunk/src/keas/googlemap/README.txt	2008-11-06 12:31:23 UTC (rev 92812)
+++ keas.googlemap/trunk/src/keas/googlemap/README.txt	2008-11-06 13:44:48 UTC (rev 92813)
@@ -72,6 +72,17 @@
   >>> geo 
   Geocode(59.939039, 30.315785)
 
+The ValueError will be raised if no geocode found for the query:
+
+  >>> geoQuery = geocode.GeocodeQuery(u'sgzsdfg')
+  >>> try:
+  ...     interfaces.IGeocode(geoQuery)
+  ... except IOError, e:
+  ...     raise ValueError('Could not get geocode for sgzsdfg')
+  Traceback (most recent call last):
+  ...
+  ValueError: Could not get geocode for sgzsdfg
+
 Managing Google Map API Keys
 ----------------------------
 



More information about the Checkins mailing list