def test_advance_search_coordinates(): result = search_coordinates_by_filter( func=lambda name: "福州" in name or "杭州" in name) assert "福州" in result assert "杭州" in result result2 = search_coordinates_by_keyword("福州", "杭州") assert_dict_equal(result, result2)
def test_advance_search_coordinates(): result = search_coordinates_by_filter( func=lambda name: '福州' in name or '杭州' in name) assert '福州' in result assert '杭州' in result result2 = search_coordinates_by_keyword('福州', '杭州') assert_dict_equal(result, result2)
def test_advance_search_coordinates(): result = search_coordinates_by_filter( func=lambda name: "福州" in name or "杭州" in name ) assert "福州" in result assert "杭州" in result result2 = search_coordinates_by_keyword("福州", "杭州") assert_dict_equal(result, result2)
def do_advance_search_coordinates(region): result = search_coordinates_by_filter( func=lambda name: "Central" in name or "Hong Kong" in name, region=region, ) expected = { "Hong Kong": [114.15769, 22.28552], "Central": [114.15846, 22.28299] } eq_(result, expected) result2 = search_coordinates_by_region_and_keyword(region, "Central", "Hong Kong") assert_dict_equal(result, result2)