# Path: cum/config.py
# class BaseConfig(object):
# class MadokamiConfig(object):
#     def __init__(self):
#     def __setattr__(self, name, value):
#     def default_download_directory(self):
#     def load(self):
#     def serialize(self):
#     def write(self):
#     def __init__(self, config, dict):
#     def login(self):
# def get():
# def initialize(directory=None):


from cum import config
from unittest import mock
import cumtest
        {'url': 'https://dynasty-scans.com/chapters/nijipuri_ch05',
         'chapter': '5'},
        {'url': 'https://dynasty-scans.com/chapters/nijipuri_ch06',
         'chapter': '6'},
    ]
    FOLLOW = {'url': 'https://dynasty-scans.com/series/nijipuri',
              'name': 'Nijipuri', 'alias': 'nijipuri'}

    def create_test_data(self):
        series = self.create_mock_series(**self.FOLLOW)
        for chapter_info in self.CHAPTERS:
            chapter = self.create_mock_chapter(**chapter_info)
            series.chapters.append(chapter)
        series.follow()

    def test_new(self):
        MESSAGES = ['nijipuri', '1  2  3  4  5  6']

        self.create_test_data()

        result = self.invoke('new')
        self.assertEqual(result.exit_code, 0)
        for message in MESSAGES:
            self.assertIn(message, result.output)

    def test_new_empty(self):
        result = self.invoke('new')
        self.assertEqual(result.exit_code, 0)
        self.assertFalse(result.output)


# Path: cum/config.py
# class BaseConfig(object):
# class MadokamiConfig(object):
#     def __init__(self):
#     def __setattr__(self, name, value):
#     def default_download_directory(self):
#     def load(self):
#     def serialize(self):
#     def write(self):
#     def __init__(self, config, dict):
#     def login(self):
# def get():
# def initialize(directory=None):


# Path: tests/test_cli_new.py
from cum import config
from unittest import mock
import cumtest

        {'url': 'https://dynasty-scans.com/chapters/nijipuri_ch05',
         'chapter': '5'},
        {'url': 'https://dynasty-scans.com/chapters/nijipuri_ch06',
         'chapter': '6'},
    ]
    FOLLOW = {'url': 'https://dynasty-scans.com/series/nijipuri',
              'name': 'Nijipuri', 'alias': 'nijipuri'}

    def create_test_data(self):
        series = self.create_mock_series(**self.FOLLOW)
        for chapter_info in self.CHAPTERS:
            chapter = self.create_mock_chapter(**chapter_info)
            series.chapters.append(chapter)
        series.follow()

    def test_new(self):
        MESSAGES = ['nijipuri', '1  2  3  4  5  6']

        self.create_test_data()

        result = self.invoke('new')
        self.assertEqual(result.exit_code, 0)
        for message in MESSAGES:
            self.assertIn(message, result.output)

    def test_new_empty(self):
        result = self.invoke('new')
        self.assertEqual(result.exit_code, 0)
        self.assertFalse(result.output)


    def test_new_compact(self):