Fix the radius, it was half the size it should have been in each direction
[ottawa-travel-planner.git] / tests / test_plantime.py
blob1220d7166bac34f6fc71091c3f8851dd12f7ca6b
2 # vi: set softtabstop=4 shiftwidth=4 tabstop=8 expandtab:
4 import unittest
5 import PlanTime
8 class TestPlanTime(unittest.TestCase):
10 def testPMParams(self):
11 # 1118005621 -> Sun Jun 5 17:07:01 EDT 2005
12 t = 1118005621
13 pt = PlanTime.PlanTime(t, PlanTime.MUST_LEAVE_AFTER)
14 self.assertEquals(pt.toPlannerParams(),
15 (("dateSelect", "2005-06-05"),
16 ("day", "2005-06-05"),
17 ("visibleDay", "June 5"),
18 ("requestCode", 3),
19 ("time", "05:07"),
20 ("timePeriod", "pm"),
21 ("ok.x", 29),
22 ("ok.y", 21)))
24 if __name__ == '__main__':
25 unittest.main()