# Path: collectors/isrctn/spider.py
# def _make_start_urls(prefix, date_from=None, date_to=None):
#     """ Return start_urls.
#     """
#     if date_from is None:
#         date_from = str(date.today() - timedelta(days=1))
#     if date_to is None:
#         date_to = str(date.today())
#     query = OrderedDict()
#     query['q'] = ''
#     gtle = 'GT lastEdited:%sT00:00:00.000Z' % date_from
#     lele = 'LE lastEdited:%sT00:00:00.000Z' % date_to
#     query['filters'] = ','.join([gtle, lele])
#     query['page'] = '1'
#     query['pageSize'] = '100'
#     query['searchType'] = 'advanced-search'
#     return [prefix + '?' + urlencode(query)]


from importlib import import_module
from collectors.isrctn.spider import _make_start_urls
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals



# Tests

def test_make_start_urls():

# Path: collectors/isrctn/spider.py
# def _make_start_urls(prefix, date_from=None, date_to=None):
#     """ Return start_urls.
#     """
#     if date_from is None:
#         date_from = str(date.today() - timedelta(days=1))
#     if date_to is None:
#         date_to = str(date.today())
#     query = OrderedDict()
#     query['q'] = ''
#     gtle = 'GT lastEdited:%sT00:00:00.000Z' % date_from
#     lele = 'LE lastEdited:%sT00:00:00.000Z' % date_to
#     query['filters'] = ','.join([gtle, lele])
#     query['page'] = '1'
#     query['pageSize'] = '100'
#     query['searchType'] = 'advanced-search'
#     return [prefix + '?' + urlencode(query)]


# Path: tests/test_isrctn.py
from importlib import import_module
from collectors.isrctn.spider import _make_start_urls

# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals



# Tests

def test_make_start_urls():

    result = _make_start_urls('prefix', '2016-01-01', '2016-01-15')