示例#1
0
 def test_fetch_latest_onpoints(self):
     basedir = self.standardpath
     downloader = Downloader()
     downloader.fs = FileSystem()
     subs = Subscriptions(downloader, self.standardpath)
     asub = subs.find("wbur")
     self.assertNotEqual(None,asub)
示例#2
0
 def test_dirs_dont_exist(self):
     with self.assertRaises(AttributeError):
         subs = Subscriptions(self.standardpath)
         asub = subs.find("xgenes")
         self.assertTrue(os.path.exists(asub.subscriptions._podcasts_basedir()))
示例#3
0
 def test_dirs_exist(self):
     subs = Subscriptions(FakeDownloader(), self.standardpath )
     asub = subs.find("genes")
     self.assertTrue(os.path.exists(asub.subscriptions._podcasts_basedir()))