def test_gen_datetime_6(self):

        # max_date for the platform
        max_date = (datetime.datetime.now() +
                    datetime.timedelta(365 * MAX_YEARS))
        # min_date  = max_date - 1 year
        min_date = max_date - datetime.timedelta(365 * 1)

        for turn in range(20):
            result = gen_datetime(
                min_date=min_date,
                max_date=None
            )
            self.assertTrue(result.year <= max_date.year, result)
            self.assertTrue(result.year >= min_date.year, result)
Do the actual heavy lifting of getting the dated items; this accepts a
dataset/ETHPy150Open omaciel/fauxfactory/tests/test_datetime.py/TestDates.test_gen_datetime_6--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/views/generic/dates.py/BaseDayArchiveView._get_dated_items