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)
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()))
def test_dirs_exist(self): subs = Subscriptions(FakeDownloader(), self.standardpath ) asub = subs.find("genes") self.assertTrue(os.path.exists(asub.subscriptions._podcasts_basedir()))