# Path: cum/exceptions.py
# class CumException(Exception):
# class LoginError(CumException):
# class ScrapingError(CumException):
# class ConfigError(CumException):
#     def __init__(self, message=''):
#     def __str__(self):
#     def __init__(self, config, cursor, message=''):


from cum import exceptions
from cumtest import CumTest
        from cum.scrapers import yuriism
import os
import zipfile
            series = yuriism.YuriismSeries(URL)

    def test_series_joshiraku(self):
        ALIAS = 'joshiraku'
        CHAPTERS = ['166']
        GROUPS = ['Yuri-ism']
        NAME = 'Joshiraku'
        URL = 'http://www.yuri-ism.net/slide/series/joshiraku/'
        series = yuriism.YuriismSeries(URL)
        self.assertEqual(series.name, NAME)
        self.assertEqual(series.alias, ALIAS)
        self.assertEqual(series.url, URL)
        self.assertIs(series.directory, None)
        self.assertEqual(len(series.chapters), len(CHAPTERS))
        for chapter in series.chapters:
            self.assertEqual(chapter.name, NAME)
            self.assertEqual(chapter.alias, ALIAS)
            self.assertIn(chapter.chapter, CHAPTERS)
            CHAPTERS.remove(chapter.chapter)
            for group in chapter.groups:
                self.assertIn(group, GROUPS)
            self.assertIs(chapter.directory, None)
        self.assertEqual(len(CHAPTERS), 0)

    def test_series_joshiraku_https(self):
        ALIAS = 'joshiraku'
        CHAPTERS = ['166']
        GROUPS = ['Yuri-ism']
        NAME = 'Joshiraku'
        URL = 'https://www.yuri-ism.net/slide/series/joshiraku/'

# Path: cum/exceptions.py
# class CumException(Exception):
# class LoginError(CumException):
# class ScrapingError(CumException):
# class ConfigError(CumException):
#     def __init__(self, message=''):
#     def __str__(self):
#     def __init__(self, config, cursor, message=''):


# Path: tests/test_scraper_yuriism.py
from cum import exceptions
from cumtest import CumTest
        from cum.scrapers import yuriism
import os
import zipfile

            series = yuriism.YuriismSeries(URL)

    def test_series_joshiraku(self):
        ALIAS = 'joshiraku'
        CHAPTERS = ['166']
        GROUPS = ['Yuri-ism']
        NAME = 'Joshiraku'
        URL = 'http://www.yuri-ism.net/slide/series/joshiraku/'
        series = yuriism.YuriismSeries(URL)
        self.assertEqual(series.name, NAME)
        self.assertEqual(series.alias, ALIAS)
        self.assertEqual(series.url, URL)
        self.assertIs(series.directory, None)
        self.assertEqual(len(series.chapters), len(CHAPTERS))
        for chapter in series.chapters:
            self.assertEqual(chapter.name, NAME)
            self.assertEqual(chapter.alias, ALIAS)
            self.assertIn(chapter.chapter, CHAPTERS)
            CHAPTERS.remove(chapter.chapter)
            for group in chapter.groups:
                self.assertIn(group, GROUPS)
            self.assertIs(chapter.directory, None)
        self.assertEqual(len(CHAPTERS), 0)

    def test_series_joshiraku_https(self):
        ALIAS = 'joshiraku'
        CHAPTERS = ['166']
        GROUPS = ['Yuri-ism']
        NAME = 'Joshiraku'
        URL = 'https://www.yuri-ism.net/slide/series/joshiraku/'

        series = yuriism.YuriismSeries(URL)