# Path: pipeline/archivebot/seesaw/wpull.py
# class WpullArgs(object):
#     def __init__(self, *, default_user_agent, wpull_exe, youtube_dl_exe, finished_warcs_dir, warc_max_size, monitor_disk, monitor_memory):
#         self.default_user_agent = default_user_agent
#         self.wpull_exe = wpull_exe
#         self.youtube_dl_exe = youtube_dl_exe
#         self.finished_warcs_dir = finished_warcs_dir
#         self.warc_max_size = warc_max_size
#         self.monitor_disk = monitor_disk
#         self.monitor_memory = monitor_memory
# 
#     def realize(self, item):
#         return make_args(item, self.default_user_agent, self.wpull_exe,
#             self.youtube_dl_exe, self.finished_warcs_dir,
#             self.warc_max_size, self.monitor_disk, self.monitor_memory)


from os import environ as env
from .wpull import WpullArgs
from seesaw.item import Item
import unittest


# taken form pipeline/pipeline.py
if 'WARC_MAX_SIZE' in env:
    WARC_MAX_SIZE = env['WARC_MAX_SIZE']
else:
    WARC_MAX_SIZE = '5368709120'
WPULL_MONITOR_DISK = env.get('WPULL_MONITOR_DISK', '500m')
WPULL_MONITOR_MEMORY = env.get('WPULL_MONITOR_MEMORY', '50m')

def joined(args):
    return str.join(' ', args)

class TestWpullArgs(unittest.TestCase):
    def setUp(self):
        self.item = {
                'cookie_jar': '/foobar/cookies.txt',

# Path: pipeline/archivebot/seesaw/wpull.py
# class WpullArgs(object):
#     def __init__(self, *, default_user_agent, wpull_exe, youtube_dl_exe, finished_warcs_dir, warc_max_size, monitor_disk, monitor_memory):
#         self.default_user_agent = default_user_agent
#         self.wpull_exe = wpull_exe
#         self.youtube_dl_exe = youtube_dl_exe
#         self.finished_warcs_dir = finished_warcs_dir
#         self.warc_max_size = warc_max_size
#         self.monitor_disk = monitor_disk
#         self.monitor_memory = monitor_memory
# 
#     def realize(self, item):
#         return make_args(item, self.default_user_agent, self.wpull_exe,
#             self.youtube_dl_exe, self.finished_warcs_dir,
#             self.warc_max_size, self.monitor_disk, self.monitor_memory)


# Path: pipeline/archivebot/seesaw/wpullargs_test.py
from os import environ as env
from .wpull import WpullArgs
from seesaw.item import Item
import unittest



# taken form pipeline/pipeline.py
if 'WARC_MAX_SIZE' in env:
    WARC_MAX_SIZE = env['WARC_MAX_SIZE']
else:
    WARC_MAX_SIZE = '5368709120'
WPULL_MONITOR_DISK = env.get('WPULL_MONITOR_DISK', '500m')
WPULL_MONITOR_MEMORY = env.get('WPULL_MONITOR_MEMORY', '50m')

def joined(args):
    return str.join(' ', args)

class TestWpullArgs(unittest.TestCase):
    def setUp(self):
        self.item = {
                'cookie_jar': '/foobar/cookies.txt',

                'ident': 'abc123',