add fuzzy matching + tests

This commit is contained in:
jgysland committed 2017-04-29 17:13:04 -04:00
1 parent 819a0e1f57
commit 6ce27d225d
3 files changed
+36 -2

No files matched your search

+16
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):
"""