Tests

class omgeo.tests.tests.GeocoderProcessorTest(methodName='runTest')

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_postpro_GroupBy()

Test GroupBy postprocessor.

test_pro_CancelIfPOBox()

Test CancelIfPOBox preprocessor.

test_pro_CancelIfRegexInAttr()

Test CancelIfRegexInAttr preprocessor.

test_pro_CancelIfRegexInAttr_case_sensitive()

Test CancelIfRegexInAttr preprocessor using case-sensitive option.

test_pro_SnapPoints()

Take two candidates within 50 metres and eliminate one.

test_pro_country_CountryPreProcessor()

Test CountryPreProcessor

test_pro_country_RequireCountry()

Test RequireCountry preprocessor.

test_pro_filter_AttrExclude_exact()

Test AttrExclude with exact_match=True.

test_pro_filter_AttrExclude_inexact()

Test AttrExclude with exact_match=False.

test_pro_filter_AttrFilter_exact()

Test AttrFilter postprocessor.

test_pro_filter_AttrFilter_inexact()

Test AttrFilter postprocessor with exact_match=False.

test_pro_parsing_ParseSingleLine()

Test ParseSingleLine preprocessor using single-line UK address.

test_pro_rename_AttrRename_exact()

Test AttrRename postprocessor using exact search string.

test_pro_rename_AttrRename_inexact()

Test AttrRename postprocessor using partial search string.

test_pro_scoring_ScoreSorter()

Test ScoreSorter postprocessor.

test_pro_scoring_ScoreSorter_asc()

Test ScoreSorter postprocessor with reverse=False.

test_pro_scoring_UseHighScoreIfAtLeast()

Test UseHighScoreIfAtLeast postprocessor.

test_pro_sort_AttrReverseSorter()

Test AttrReverseSorter postprocessor.

test_pro_sort_AttrSorter()

Test AttrSorter postprocessor.

test_pro_streetnumber_ReplaceRangeWithNumber()

Test ReplaceRangeWithNumber preprocessor.

class omgeo.tests.tests.GeocoderTest(methodName='runTest')

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_address_components()

Make sure EsriWGS returns address components

test_bounded_no_viewbox()

Should return a nice error saying that PlaceQuery can’t be bounded without Viewbox.

test_esri_geocoder_eu_default_override()

Test for default argument bug in 3.1 – EsriNA and EsriEU append processors rather than replace them

test_esri_geocoder_na_default_override()

Test for default argument bug in 3.1 – EsriNA and EsriEU append processors rather than replace them

test_geocode_bing(*args, **kwargs)

Test Azavea’s address using Bing geocoder

test_geocode_census()

Test Azavea’s address using US Census geocoder.

test_geocode_dupepicker()

Check that ‘340 12th St returns results’

test_geocode_esri_eu_soap()

Test ESRI Europe SOAP geocoder

test_geocode_esri_na_nz()

Test ESRI North America REST geocoder using a city in New Zealand.

test_geocode_esri_na_us()

Test ESRI North America REST geocoder

test_geocode_esri_na_us_soap()

Test ESRI North America SOAP geocoder

test_geocode_esri_wgs_340_12th_bounded()

Trying to geocode 340 12th St, Philadelphia PA would normally return results for both 340 N 12th St and 340 S 12th St. Using a bounding box around Callowhill, we should only get the former.

test_geocode_esri_wgs_multipart()

Check that geocoding multipart address returns one result.

test_geocode_esri_wgs_senado_mx()

Attempt to geocode Paseo de la Reforma 135, Tabacalera, Cuauhtémoc, Distrito Federal, 06030.

test_geocode_esri_wgs_zip_plus_4()

Check that geocoding 19127-1112 returns one result.

test_geocode_karori(*args, **kwargs)

Check that ‘102 Karori Road Karori Wellington’ returns an address with the correct house number and postcode.

test_geocode_mapquest(*args, **kwargs)

Test Azavea’s address using MapQuest geocoder.

test_geocode_mapquest_ssl(*args, **kwargs)

Test Azavea’s address using secure MapQuest geocoder.

test_geocode_nom()

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_1()

Geocoder expected to return the same place twice – one with city as Flemington, and one with city as Readington Twp. This test checks that only one is picked.

test_geocode_snap_points_2(*args, **kwargs)

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.

test_geocode_structured_esri_wgs_senado_mx()

Attempt to geocode Paseo de la Reforma 135, Tabacalera, Cuauhtémoc, Distrito Federal, 06030 using a structured query to EsriWGS.

Previous topic

Release Notes

This Page