# Path: data_cube_utilities/dc_chunker.py
# def create_geographic_chunks(longitude=None, latitude=None, geographic_chunk_size=0.5):
# def create_square_geographic_chunks(longitude=None, latitude=None,
#                                     geographic_chunk_size=0.05):
# def combine_geographic_chunks(chunks):
# def create_time_chunks(datetime_list, _reversed=False, time_chunk_size=10):
# def group_datetimes_by_year(datetime_list):
# def group_datetimes_by_month(datetime_list, months=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]):
# def _chunk_iterable(_iterable, chunk_size):
# def generate_baseline(_iterable, window_length):


import unittest
import xarray as xr
import numpy as np
from datetime import datetime
from data_cube_utilities import dc_chunker



class TestChunker(unittest.TestCase):

    def setUp(self):
        self.negative_to_positive = (-1, 1)
        self.positive_to_negative = (1, -1)
        self.dates = [
            datetime(2005, 1, 1), datetime(2006, 1, 1), datetime(2007, 5, 3), datetime(2014, 2, 1), datetime(2000, 1, 1)
        ]

    def tearDown(self):
        pass

    def test_create_geographic_chunks(self):
        with self.assertRaises(AssertionError):

# Path: data_cube_utilities/dc_chunker.py
# def create_geographic_chunks(longitude=None, latitude=None, geographic_chunk_size=0.5):
# def create_square_geographic_chunks(longitude=None, latitude=None,
#                                     geographic_chunk_size=0.05):
# def combine_geographic_chunks(chunks):
# def create_time_chunks(datetime_list, _reversed=False, time_chunk_size=10):
# def group_datetimes_by_year(datetime_list):
# def group_datetimes_by_month(datetime_list, months=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]):
# def _chunk_iterable(_iterable, chunk_size):
# def generate_baseline(_iterable, window_length):


# Path: test/test_dc_chunker.py
import unittest
import xarray as xr
import numpy as np
from datetime import datetime
from data_cube_utilities import dc_chunker




class TestChunker(unittest.TestCase):

    def setUp(self):
        self.negative_to_positive = (-1, 1)
        self.positive_to_negative = (1, -1)
        self.dates = [
            datetime(2005, 1, 1), datetime(2006, 1, 1), datetime(2007, 5, 3), datetime(2014, 2, 1), datetime(2000, 1, 1)
        ]

    def tearDown(self):
        pass

    def test_create_geographic_chunks(self):
        with self.assertRaises(AssertionError):

            dc_chunker.create_geographic_chunks(longitude=self.positive_to_negative, latitude=self.positive_to_negative)