Skip to content

Commit

Permalink
Add a couple tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iandees committed Oct 11, 2016
1 parent 6cd89fe commit afd6f88
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/checker_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,23 @@ def test_match_filter_restaurant_no_match(self):
matches = filter_matches(venue_name, possibilities)

self.assertEqual(0, len(matches))

def test_match_filter_waffle_shop(self):
possibilities = [
{"id": 0, "tags": {"name": u"Tariff Commission Building"}},
{"id": 0, "tags": {"name": u"Foo Bar"}},
]
venue_name = u"Lincoln's Waffle Shop"
matches = filter_matches(venue_name, possibilities)

self.assertEqual(0, len(matches))

def test_match_filter_front_street(self):
possibilities = [
{"id": 0, "tags": {"name": u"Brown Street"}},
{"id": 0, "tags": {"name": u"Front Avenue"}},
]
venue_name = u"Front Street"
matches = filter_matches(venue_name, possibilities)

self.assertEqual(0, len(matches))

0 comments on commit afd6f88

Please sign in to comment.