<reponame>BFTeck/mangopi<gh_stars>10-100
from unittest import TestCase

from mangopi.site.mangafox import MangaFox


class TestMangaFox(TestCase):
    SERIES = MangaFox.series('gantz')
    CHAPTERS = SERIES.chapters

    def test_chapter_count(self):
        self.assertEqual(len(TestMangaFox.CHAPTERS), 386)

    def test_chapter_title(self):
        self.assertEqual(TestMangaFox.CHAPTERS[-2].title, 'Lightning Counterstrike')

    def test_chapter_pages(self):
        self.assertEqual(len(TestMangaFox.CHAPTERS[0].pages), 43)

    def test_for_image_url(self):
        self.assertIsNone(TestMangaFox.CHAPTERS[0].pages[0].image)

from unittest import TestCase

from mangopi.site.mangafox import MangaFox


class TestMangaFox(TestCase):
    SERIES = MangaFox.series('gantz')
    CHAPTERS = SERIES.chapters

    def test_chapter_count(self):
        self.assertEqual(len(TestMangaFox.CHAPTERS), 386)

    def test_chapter_title(self):
        self.assertEqual(TestMangaFox.CHAPTERS[-2].title, 'Lightning Counterstrike')

    def test_chapter_pages(self):
        self.assertEqual(len(TestMangaFox.CHAPTERS[0].pages), 43)

    def test_for_image_url(self):
        self.assertIsNone(TestMangaFox.CHAPTERS[0].pages[0].image)