# Path: nba_data/data/date_range.py
# class DateRange:
#     def __init__(self, start=date.today(), end=date.today()):
#         assert start <= end
# 
#         self.start = start
#         self.end = end
# 
#     def is_date_in_range(self, value):
#         assert isinstance(value, date)
# 
#         return self.start <= value <= self.end


from datetime import date, timedelta
from unittest import TestCase
from nba_data.data.date_range import DateRange



class TestDateRange(TestCase):
    start = date(year=2015, month=1, day=1)
    end = date(year=2015, month=1, day=2)

    def test_instantiation(self):
        self.assertIsNotNone(DateRange(start=TestDateRange.start, end=TestDateRange.end))
        self.assertRaises(AssertionError, DateRange, TestDateRange.start, TestDateRange.start - timedelta(days=1))

    def test_is_date_in_range(self):

# Path: nba_data/data/date_range.py
# class DateRange:
#     def __init__(self, start=date.today(), end=date.today()):
#         assert start <= end
# 
#         self.start = start
#         self.end = end
# 
#     def is_date_in_range(self, value):
#         assert isinstance(value, date)
# 
#         return self.start <= value <= self.end


# Path: tests/test_dateRange.py
from datetime import date, timedelta
from unittest import TestCase
from nba_data.data.date_range import DateRange




class TestDateRange(TestCase):
    start = date(year=2015, month=1, day=1)
    end = date(year=2015, month=1, day=2)

    def test_instantiation(self):
        self.assertIsNotNone(DateRange(start=TestDateRange.start, end=TestDateRange.end))
        self.assertRaises(AssertionError, DateRange, TestDateRange.start, TestDateRange.start - timedelta(days=1))

    def test_is_date_in_range(self):

        date_range = DateRange(TestDateRange.start, TestDateRange.end)