root/bbox/t/02_parse_spatial.t

Revision 424, 0.6 kB (checked in by zool, 3 years ago)

revisions to tests... log updates... bettery geometry support

Line 
1 import unittest
2 import feedparser
3 from bbox import BBox
4
5 class FeedTestCase(unittest.TestCase):
6     def __init__(self,*args):
7         unittest.TestCase.__init__(self, *args)
8
9     def test_01_parse_rss(self):
10         fh = open('geo.rss')
11         xml = fh.read()
12         feed = feedparser.parse(xml)
13
14     def test_02_bbox_parse_rss(self):
15         bbox = BBox()
16         bbox.read_rss('file:geo.rss')
17
18     def test_03_bbox_parse_spatial_rss(self):
19         bbox = BBox(spatial='bbox')
20         bbox.read_rss('http://localhost/geo.rss')
21
22     def test_03_bbox_parse_spatial_rdf(self):
23         bbox = BBox(spatial='bbox')
24         bbox.read_rdf('http://localhost/geo.rss')
25 if __name__ == '__main__':
26     unittest.main()
27
Note: See TracBrowser for help on using the browser.