mcyar;
[ottawa-travel-planner.git] / tests / test_itinerary_parser.py
blob842906c423b2681e7fcac6481d517361c93020ed
2 # vi: set softtabstop=4 shiftwidth=4 tabstop=8 expandtab:
4 import unittest
5 import Itinerary
7 class TestItinGrab(unittest.TestCase):
9 def setUp(self):
10 fp = open(self.filename, "r")
11 html = fp.read()
12 fp.close()
14 itinp = Itinerary.ItineraryParser()
15 itinp.feed(html)
16 itinp.close()
18 self.entries = itinp.entries
21 class TestChampagneItin(TestItinGrab):
23 filename = "grabs/champagne-itin.html"
25 def testEntries(self):
26 print self.entries
28 class TestLongItin(TestItinGrab):
30 filename = "grabs/long-itin.html"
32 def testEntries(self):
33 print self.entries
35 if __name__ == '__main__':
36 unittest.main()