Changeset 251

Show
Ignore:
Timestamp:
08/25/05 01:29:22 (3 years ago)
Author:
zool
Message:

moved spatial tests to different run

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bbox/t/01_parse.t

    Revision 249 Revision 251
    1import unittest 1import unittest 
    2import feedparser 2import feedparser 
    3from bbox import BBox 3from bbox import BBox 
    4 4 
    5class FeedTestCase(unittest.TestCase): 5class FeedTestCase(unittest.TestCase): 
    6    def __init__(self,*args): 6    def __init__(self,*args): 
    7        unittest.TestCase.__init__(self, *args) 7        unittest.TestCase.__init__(self, *args) 
    8 8 
    9    def test_01_parse_rss(self): 9    def test_01_parse_rss(self): 
    10        fh = open('t/geo.rss') 10        fh = open('t/geo.rss') 
    11        xml = fh.read() 11        xml = fh.read() 
    12        feed = feedparser.parse(xml) 12        feed = feedparser.parse(xml) 
    13        for e in feed.entries: 13        for e in feed.entries: 
    14            for k in e.keys(): 14            for k in e.keys(): 
    15                print e[k] 15                print e[k] 
    16 16 
    17    def test_02_bbox_parse_rss(self): 17    def test_02_bbox_parse_rss(self): 
    18        bbox = BBox() 18        bbox = BBox() 
    19        bbox.read_rss('file:t/geo.rss') 19        bbox.read_rss('file:t/geo.rss') 
    20 20 
    21    def test_03_bbox_parse_spatial_rss(self): 21    def test_03_bbox_parse_rdf(self): 
    22       bbox = BBox(spatial='bbox'22        bbox = BBox(
    23        bbox.read_rss('http://localhost/geo.rss') 23        bbox.read_rdf('http://frot.org/foaf.rdf') 
    24 24 
    25    def test_03_bbox_parse_spatial_rdf(self):   
    26        bbox = BBox(spatial='bbox')   
    27        bbox.read_rdf('http://localhost/JoWalsh.rdf')   
    28if __name__ == '__main__': 25if __name__ == '__main__': 
    29    unittest.main() 26    unittest.main() 
    30 27