def test_grouped_dates_between(): tstamps_should = [datetime(2007, 1, 10), datetime(2007, 1, 20), datetime(2007, 1, 31), datetime(2007, 2, 10)] tstamps = grouped_dates_between(date(2007, 1, 1), date(2007, 2, 1)) assert tstamps == tstamps_should
def test_grouped_dates_between_start(): tstamps_should = [datetime(2007, 1, 1), datetime(2007, 1, 11), datetime(2007, 1, 21), datetime(2007, 2, 1)] tstamps = grouped_dates_between( date(2007, 1, 1), date(2007, 2, 1), start=True) assert tstamps == tstamps_should
def test_grouped_dates_between(): tstamps_should = [ datetime(2007, 1, 10), datetime(2007, 1, 20), datetime(2007, 1, 31), datetime(2007, 2, 10) ] tstamps = grouped_dates_between(date(2007, 1, 1), date(2007, 2, 1)) assert tstamps == tstamps_should
def test_grouped_dates_between_start(): tstamps_should = [ datetime(2007, 1, 1), datetime(2007, 1, 11), datetime(2007, 1, 21), datetime(2007, 2, 1) ] tstamps = grouped_dates_between(date(2007, 1, 1), date(2007, 2, 1), start=True) assert tstamps == tstamps_should