def batoto_test_bad_url(self): dc = DownloadController() # test chapter request exception mod = BatotoModel("http://bato.to", dc.guiInfoFcn) r = mod.downloadChapter(["bad_chapter", "http://bato.to/comic/_/comics/asdfgh"], './') self.assertFalse(r)
def batoto_test(self): dc = DownloadController() # test chapter list request mod = BatotoModel(self.batoto_series_url, dc.guiInfoFcn) chapters = mod.getChaptersList() # test chapter download r = mod.downloadChapter(chapters[self.batoto_chapter_index], './') # test if download was sucessfull self.assertTrue(r)