Beispiel #1
0
def test_ordinal_number_name_match():
    osm = '3rd Avenue–149th Street'
    wikidata = '3rd Avenue – 149th Street'
    assert match.name_match_main(osm, wikidata)

    osm = '3rd Avenue–149th Street'
    wikidata = 'Third Avenue – 149th Street'
    assert match.name_match_main(osm, wikidata)
Beispiel #2
0
def test_match_german_church():
    # n1 = 'Alte Johanneskirche'
    # n2 = 'Johann'

    n1 = 'Johannes der Täufer'
    n2 = 'St. Johann der Täufer'
    assert match.name_match_main(n1, n2, endings=['st', 'kirche'], debug=True) is not None
Beispiel #3
0
def test_number_bad_match():
    assert not match.name_match_main('1 & 2', '12, Downside')
    assert not match.name_match_main('5.', '5, High Street')
Beispiel #4
0
def test_russian_doesnt_match_number():
    assert not match.name_match_main('1', '1-й общественный совет')