add fuzzy matching + tests

This commit is contained in:
jgysland
2017-04-29 17:13:04 -04:00
parent ef47a50300
commit 507afe9e93
3 changed files with 36 additions and 2 deletions

View File

@@ -149,6 +149,22 @@ class TestMatching(TestCase):
)
)
def test_match_fuzzy(self):
self._test_matching(
"Springfield, Miss.",
"MATCH_FUZZY",
(
"1220 Main Street, Springf eld, Miss.",
"1220 Main Street, Spring field, Miss.",
"1220 Main Street, Springfeld, Miss.",
"1220 Main Street Springfield Miss",
),
(
"1220 Main Street, Springfield, Mich.",
)
)
class TestApplications(TestCase):
"""