Full location support with partial match smartitty
[ottawa-travel-planner.git] / tests / test_landmark_matcher.py
bloba4db42a86978666be1e5043b4add3e7153cb64a4
2 # vi: set softtabstop=4 shiftwidth=4 tabstop=8 expandtab:
4 import sre
5 import unittest
6 import LandmarkMatcher
8 class TestMatch(unittest.TestCase):
10 def setUp(self):
11 self.lm = LandmarkMatcher.LandmarkMatcher()
13 def testFullMatch(self):
14 self.assertEquals(self.lm.match("rideau centre"), "RIDEAU CENTRE")
16 def testPartialMatchRideau(self):
17 self.assertEquals(self.lm.match("rideau"), "RIDEAU TRANSIT MALL")
19 def testPartialMatchBayshore(self):
20 self.assertEquals(self.lm.match("bayshore"), "BAYSHORE STATION")
22 if __name__ == '__main__':
23 unittest.main()