Tests¶
-
class
omgeo.tests.tests.
GeocoderProcessorTest
(methodName='runTest')[source]¶ Tests using various pre- and post-processors.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
test_pro_CancelIfRegexInAttr_case_sensitive
()[source]¶ Test CancelIfRegexInAttr preprocessor using case-sensitive option.
-
test_pro_parsing_ParseSingleLine
()[source]¶ Test ParseSingleLine preprocessor using single-line UK address.
-
test_pro_rename_AttrRename_exact
()[source]¶ Test AttrRename postprocessor using exact search string.
-
-
class
omgeo.tests.tests.
GeocoderTest
(methodName='runTest')[source]¶ Tests using various geocoding APIs. Requires internet connection.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
test_geocode_esri_wgs_340_12th_bounded
()[source]¶ Trying to geocode
340 12th St, Philadelphia PA
would normally return results for both340 N 12th St
and340 S 12th St
. Using a bounding box around Callowhill, we should only get the former.
-
test_geocode_esri_wgs_auth
(**kwargs)[source]¶ Test that using authentication with the ESRI WGS geocoder is working
-
test_geocode_esri_wgs_multipart
()[source]¶ Check that geocoding multipart address returns one result.
-
test_geocode_esri_wgs_senado_mx
()[source]¶ Attempt to geocode
Paseo de la Reforma 135, Tabacalera, Cuauhtémoc, Distrito Federal, 06030
.
-
test_geocode_karori
(**kwargs)[source]¶ Check that ‘102 Karori Road Karori Wellington’ returns an address with the correct house number and postcode.
-
test_geocode_nom
(**kwargs)[source]¶ Test 1200 Callowhill Street using Nominatim geocoder. Also check to make sure coordinate values are floats and not some other data type.
-
test_geocode_snap_points_2
(**kwargs)[source]¶ Bing geocoder expected to return the same place twice – one with city as Alpha, and one with city as Phillipsburg. This test checks that only one is picked.
-
-
class
omgeo.tests.tests.
OmgeoTestCase
(methodName='runTest')[source]¶ Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.