# Path: speculator/utils/date.py
# def date_to_delorean(year, month, day):
# def date_to_epoch(year, month, day):
# def now_delorean():
# def shift_epoch(delorean, direction, unit, count):
# def generate_epochs(delorean, direction, unit, count):
# def get_end_start_epochs(year, month, day, direction, unit, count):


from speculator.utils import date
import unittest

class DateTest(unittest.TestCase):
    def test_shift_epoch(self):
        delorean = date.date_to_delorean(2000, 1, 1)
        shift = date.shift_epoch(delorean, 'last', 'day', 2)
        self.assertEqual(shift, 946512000)

    def test_generate_epochs(self):
        delorean = date.date_to_delorean(2000, 1, 1)

# Path: speculator/utils/date.py
# def date_to_delorean(year, month, day):
# def date_to_epoch(year, month, day):
# def now_delorean():
# def shift_epoch(delorean, direction, unit, count):
# def generate_epochs(delorean, direction, unit, count):
# def get_end_start_epochs(year, month, day, direction, unit, count):


# Path: speculator/tests/unit/test_date.py
from speculator.utils import date
import unittest


class DateTest(unittest.TestCase):
    def test_shift_epoch(self):
        delorean = date.date_to_delorean(2000, 1, 1)
        shift = date.shift_epoch(delorean, 'last', 'day', 2)
        self.assertEqual(shift, 946512000)

    def test_generate_epochs(self):
        delorean = date.date_to_delorean(2000, 1, 1)

        gen = date.generate_epochs(delorean, 'last', 'day', 3)