コード例 #1
0
    def mangafox_test_bad_url(self):
        dc = DownloadController()

        # test chapter request exception
        mod = MangafoxModel("http://mangafox.me", dc.guiInfoFcn)
        r = mod.downloadChapter(["bad_chapter", "http://mangafox.me/manga/asdfgh"], './')

        self.assertFalse(r)
コード例 #2
0
    def mangafox_test(self):
        dc = DownloadController()

        # test chapter list request
        mod = MangafoxModel(self.mangafox_series_url, dc.guiInfoFcn)
        chapters = mod.getChaptersList()

        # test chapter download
        r = mod.downloadChapter(chapters[self.mangafox_chapter_index], './')

        # test if download was sucessfull
        self.assertTrue(r)