Esempio n. 1
0
 def setUp(self):
   self.filename = os.path.join(util.example_registry(), 'feeds', 'f-9qs-dta.json')
   with open(self.filename) as f:
     self.expect = json.load(f)
   self.url = 'file://%s'%os.path.abspath(util.example_gtfs_feed_path())
   self.sha1_gtfs = '4e5e6a2668d12cca29c89a969d73e05e625d9596'
   self.sha1_feed = 'c0406d30424111404d6b2fa9ade7f9fc218f5ee8'
 def test_example_feed(self):
   data = util.example_gtfs_feed_path()
   assert os.path.exists(data)
   assert data.endswith('.zip')
 def test_sha1file(self):
   data = util.sha1file(util.example_gtfs_feed_path())
   expect = '4e5e6a2668d12cca29c89a969d73e05e625d9596'
   assert data == expect
 def setUp(self):
   self.url = 'file://%s'%os.path.abspath(util.example_gtfs_feed_path())    
   self.sha1_gtfs = '4e5e6a2668d12cca29c89a969d73e05e625d9596'